Skip to main content



      Home
Home » Archived » BIRT » log level for Birt Viewer app
log level for Birt Viewer app [message #56459] Tue, 12 July 2005 06:44 Go to next message
Eclipse UserFriend
Hi list,

I integrated the birt viewer into my app. How can I set the log level for
the output of the viewer?

Thanks in advance,

Florian
Re: log level for Birt Viewer app [message #56811 is a reply to message #56459] Tue, 12 July 2005 13:59 Go to previous messageGo to next message
Eclipse UserFriend
Search for setLogConfig in Viewer code. The method is defined for
org.eclipse.birt.report.engine.EngineConfig.

Stanley Wang
BIRT Engine

Florian Schaefer wrote:
> Hi list,
>
> I integrated the birt viewer into my app. How can I set the log level
> for the output of the viewer?
>
> Thanks in advance,
>
> Florian
>
Re: log level for Birt Viewer app [message #57331 is a reply to message #56811] Wed, 13 July 2005 04:14 Go to previous messageGo to next message
Eclipse UserFriend
I don't want to do this programmatically, I want to configure it...
the charting process produces masses of INFO's going to stdout, I think
there is a way to configure it but I don't know it...

best regards,
Florian
Re: log level for Birt Viewer app [message #57703 is a reply to message #57331] Wed, 13 July 2005 14:00 Go to previous messageGo to next message
Eclipse UserFriend
Florian,

We will have a parameter defined in web.xml to specify the log level so
that you don't need to change it in your code.

Also are you sure you see the info in the stdout? I assume the chart
component's log should finally be directed to the engine's logger and log
info should be written into the engine log file rather than stdout since
in engine code, we already cut off the link between the engine's root
logger and default tomcat logger.

Jun Zhai
Re: log level for Birt Viewer app [message #58115 is a reply to message #57703] Thu, 14 July 2005 03:04 Go to previous messageGo to next message
Eclipse UserFriend
In web.xml i can set the dir of the engine log. This works. setting log
level doesn't work. Everything coming from the creating the charts and so
on is not logged into the engines logfile but to stdout...

e.g.:
[INFO]: ChartReportItemPresentationImpl: onRowSets(...) - building chart
[INFO]: Writing to PNG file at C:\dev\tomcat\temp\chart30416.PNG

this is very annoying...

Florian
Re: log level for Birt Viewer app [message #68362 is a reply to message #58115] Wed, 17 August 2005 20:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: allister.aandj.com.au

I am also getting this behaviour. Is there any way of turning off info
messages using a config file like web.xml.
Re: log level for Birt Viewer app [message #68482 is a reply to message #68362] Fri, 19 August 2005 05:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: psylvestre.sysdeo.com

Hello,
Thru the BIRT API, you can write this 2 lines.
And no outputs will come disturbing your logs.

EngineConfig config = new EngineConfig();
config.setLogConfig("",Level.OFF);

Level is from java.util.logging package.

It is runnig for me, if you find another solutions, mail me ?

Cheers,

Phil
Re: log level for Birt Viewer app [message #81408 is a reply to message #68482] Mon, 17 October 2005 04:41 Go to previous messageGo to next message
Eclipse UserFriend
This doesn't work for me...
The only 'set' methods available on config object are:
- setConfigurationVariable (String, String)
- setEmitterConfiguration(String, Object)
- setEngineContext(IPlatformContext)
- setEngineHome(String)
- setStatusHandler(IStatusHandler)
- setTempDir(String)

Can anyone explain how to disable logging for BIRT 1.0.1 (using
web.xml or any other way).

I don't know apache common logging package, and I believe I just need
an example...

Can anyone help?


>Hello,
>Thru the BIRT API, you can write this 2 lines.
>And no outputs will come disturbing your logs.
>
>EngineConfig config = new EngineConfig();
>config.setLogConfig("",Level.OFF);
>
>Level is from java.util.logging package.
>
>It is runnig for me, if you find another solutions, mail me ?
>
>Cheers,
>
>Phil
Re: log level for Birt Viewer app [message #82958 is a reply to message #68482] Fri, 21 October 2005 08:50 Go to previous message
Eclipse UserFriend
Thank you for the advice.
I finally found out the java runtime we used still was set to 1.3.
So, the 'setLogConfig' method wasn't shown by eclipse (using
auto-complete by ctrl-space), since one of it's parameters is a
java.util.log.Level (log package isn't available in Java 1.3)...

But now I've got it, and i set the level to level.OFF! It works fine
:)

Thanks a lot

Frédéric.

On Fri, 19 Aug 2005 09:59:23 +0000 (UTC), psylvestre@sysdeo.com
(Philippe Sylvestre) wrote:

>Hello,
>Thru the BIRT API, you can write this 2 lines.
>And no outputs will come disturbing your logs.
>
>EngineConfig config = new EngineConfig();
>config.setLogConfig("",Level.OFF);
>
>Level is from java.util.logging package.
>
>It is runnig for me, if you find another solutions, mail me ?
>
>Cheers,
>
>Phil
Previous Topic:Need help - Logging configuration
Next Topic:How can I test the path to Birt
Goto Forum:
  


Current Time: Fri May 02 15:33:39 EDT 2025

Powered by FUDForum. Page generated in 0.26453 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top