How to log? [message #90962] |
Tue, 15 November 2005 04:54  |
Eclipse User |
|
|
|
Hello,
I need a function to do logging for debugging issues.
I tried scripting using:
java.lang.System.out.println("Test Log");
No error is showing but WHERE this output goes? There is no console window
available within the BIRT perspective, and if I add the console view it
keeps blank and showing 'A console is not available'
Then I tried to use the logger:
logger.logFromScript('a log message');
But I get an error message: logger is not defined.
So HOW can I use logging?!?
Thanks for any hint!
|
|
|
|
Re: How to log? [message #92489 is a reply to message #91116] |
Fri, 18 November 2005 06:33  |
Eclipse User |
|
|
|
Hello Jane,
thanks for support, but does not work ;-(
I added following code:
importPackage(Packages.java.util.logging);
mylogger = java.util.logging.Logger.getLogger( "myLoggerName", null );
mylogger.log( java.util.logging.Level.INFO, "This message should appear on
the console.");
in the onCreate trigger of the chart. But I cannot see any output!
There is no error message in the log, so the code seems to be OK.
You wrote that the message should appear on the console, but in the
perspective of BIRT report there is no console,
And if I add the console view manually it gets a title: A console is not
available.
So wehre can I see the log within Eclipse BIRT perspective?
Thanks for further support!
|
|
|
Powered by
FUDForum. Page generated in 0.08230 seconds