Skip to main content



      Home
Home » Archived » BIRT » Disable fully Birt logging
Disable fully Birt logging [message #365698] Fri, 24 October 2008 15:52 Go to next message
Eclipse UserFriend
Hi,

In order to disable Birt logging, in 4.2 I was using
config.setLogConfig(null, Level.OFF).

But in 4.3, I'm getting info messages through the console:

Oct 24, 2008 2:40:18 PM
org.eclipse.birt.report.item.crosstab.core.re.executor.Table ColumnGenera
tor generateColumns
INFO: Type: COLUMN_EDGE, Measure: 0, Data Position: 2

Oct 24, 2008 2:40:23 PM
org.eclipse.birt.report.engine.layout.pdf.font.FontMappi
ngManagerFactory loadFontMappingConfig
INFO: load font config in bundleentry://50/fontsConfig.xml cost 63ms

Oct 24, 2008 2:40:23 PM
org.eclipse.birt.report.engine.layout.pdf.font.FontMappi
ngManagerFactory registerFontPath
INFO: register fonts in
/usr/openwin/lib/locale/ko.UTF-8/X11/fonts/TrueType cost:0ms

Even if I set the logconfig with a directory:
config.setLogConfig("c:\\temp", Level.INFO), no message are written in
the created log file (ReportEngine_2008_10_24_14_21_56.log), the
messages still appear in the console.


I noticed than the class FontMappingManagerFactory uses in the
loadFontMappingConfig and registrerFontPath methods:
logger.info( "...");

And almost everytime in the birt code, logger.log( Level.INFO, "...")
is used instead of logger.info(). Is it the reason why those messages
are not catch by the logger?

Thanking you in advanced for your help.

Nicolas.
Re: Disable fully Birt logging [message #365745 is a reply to message #365698] Wed, 29 October 2008 17:59 Go to previous messageGo to next message
Eclipse UserFriend
Nicolas Thuillier wrote:

> Hi,

> In order to disable Birt logging, in 4.2 I was using
> config.setLogConfig(null, Level.OFF).

> But in 4.3, I'm getting info messages through the console:

> Oct 24, 2008 2:40:18 PM
> org.eclipse.birt.report.item.crosstab.core.re.executor.Table ColumnGenera
> tor generateColumns
> INFO: Type: COLUMN_EDGE, Measure: 0, Data Position: 2

> Oct 24, 2008 2:40:23 PM
> org.eclipse.birt.report.engine.layout.pdf.font.FontMappi
> ngManagerFactory loadFontMappingConfig
> INFO: load font config in bundleentry://50/fontsConfig.xml cost 63ms

> Oct 24, 2008 2:40:23 PM
> org.eclipse.birt.report.engine.layout.pdf.font.FontMappi
> ngManagerFactory registerFontPath
> INFO: register fonts in
> /usr/openwin/lib/locale/ko.UTF-8/X11/fonts/TrueType cost:0ms

> Even if I set the logconfig with a directory:
> config.setLogConfig("c:\temp", Level.INFO), no message are written in
> the created log file (ReportEngine_2008_10_24_14_21_56.log), the
> messages still appear in the console.


> I noticed than the class FontMappingManagerFactory uses in the
> loadFontMappingConfig and registrerFontPath methods:
> logger.info( "...");

> And almost everytime in the birt code, logger.log( Level.INFO, "...")
> is used instead of logger.info(). Is it the reason why those messages
> are not catch by the logger?

> Thanking you in advanced for your help.

> Nicolas.


Hi Nicolas,

You should be able to control the logging by editing the
logging.properties file in the lib directory you're running off of. You
change the .level line to SEVERE or WARNING. Or have you already done
this?

Regards,

Michael
Re: Disable fully Birt logging [message #366052 is a reply to message #365745] Tue, 25 November 2008 18:31 Go to previous messageGo to next message
Eclipse UserFriend
Hi there,

I'm having the same problem. I'm using Birt 3.2 runtime on Tomcat. When I
set the logging in config:

config.setLogConfig(logDir , LEVEL.OFF);

I still get font messages like below:

Nov 25, 2008 2:55:12 PM
org.eclipse.birt.report.engine.layout.pdf.font.FontMappingMa nagerFactory
loadFontMappingConfig
INFO: load font config in bundleentry://52/fontsConfig.xml cost 171ms

with nothing in the log file.

If I set the logging to FINEST, then I get log messages in *both* the log
file and in stdout. But I only get the font messages in stdout.

Any ideas? Any help is appreciated.

Thanks,
Jennie



Michael Williams wrote:

> Nicolas Thuillier wrote:

>> Hi,

>> In order to disable Birt logging, in 4.2 I was using
>> config.setLogConfig(null, Level.OFF).

>> But in 4.3, I'm getting info messages through the console:

>> Oct 24, 2008 2:40:18 PM
>> org.eclipse.birt.report.item.crosstab.core.re.executor.Table ColumnGenera
>> tor generateColumns
>> INFO: Type: COLUMN_EDGE, Measure: 0, Data Position: 2

>> Oct 24, 2008 2:40:23 PM
>> org.eclipse.birt.report.engine.layout.pdf.font.FontMappi
>> ngManagerFactory loadFontMappingConfig
>> INFO: load font config in bundleentry://50/fontsConfig.xml cost 63ms

>> Oct 24, 2008 2:40:23 PM
>> org.eclipse.birt.report.engine.layout.pdf.font.FontMappi
>> ngManagerFactory registerFontPath
>> INFO: register fonts in
>> /usr/openwin/lib/locale/ko.UTF-8/X11/fonts/TrueType cost:0ms

>> Even if I set the logconfig with a directory:
>> config.setLogConfig("c:temp", Level.INFO), no message are written in
>> the created log file (ReportEngine_2008_10_24_14_21_56.log), the
>> messages still appear in the console.


>> I noticed than the class FontMappingManagerFactory uses in the
>> loadFontMappingConfig and registrerFontPath methods:
>> logger.info( "...");

>> And almost everytime in the birt code, logger.log( Level.INFO, "...")
>> is used instead of logger.info(). Is it the reason why those messages
>> are not catch by the logger?

>> Thanking you in advanced for your help.

>> Nicolas.


> Hi Nicolas,

> You should be able to control the logging by editing the
> logging.properties file in the lib directory you're running off of. You
> change the .level line to SEVERE or WARNING. Or have you already done
> this?

> Regards,

> Michael
Re: Disable fully Birt logging [message #1007611 is a reply to message #366052] Wed, 06 February 2013 12:51 Go to previous message
Eclipse UserFriend
I just hit this same issue.

Created this Thread:
http://www.eclipse.org/forums/index.php/t/452685/

Did anyone find a solution?
Previous Topic:New IQuery instead of org.eclipse.datatools.connectivity.oda.IQuery
Next Topic:Hide rows description in crosstab
Goto Forum:
  


Current Time: Wed Mar 19 08:52:36 EDT 2025

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

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

Back to the top