Jump to content

Recommended Posts

Posted

By: Dariusz Filipski - darekf

Full XML definition in logs when using Log4J

2003-12-12 07:35

Hello!

 

We're using JasperReports in www application which uses Log4J for logging. When we set log level to "DEBUG" compilation of XML report definition puts a lot of logs into our logfile. Those logs contains information about compilation each line of XML.

How can we turn off logging by jasper?

 

Best regards

Darek Filipski

 

 

 

 

By: Teodor Danciu - teodord

RE: Full XML definition in logs when using Lo

2003-12-12 07:41

 

Hi,

 

It is not JasperReports who outputs those logs.

It is probably the Jakarta Digester component

or the XML parser.

You have to use the log4j.properties file to filter

out the messages you don't want to see.

 

I hope this helps.

Teodor

 

 

 

 

 

By: Dariusz Filipski - darekf

RE: Full XML definition in logs when using Log4J

2003-12-12 08:35

Hello!

 

Thank you for your answer.

Can you get me a little example how to do this?

 

Best regards

Darek Filipski

 

 

 

 

By: Dariusz Filipski - darekf

RE: Full XML definition in logs when using Log4J

2003-12-16 03:31

Ok, I've done it :) It should ble something like that:

 

<logger name="org.apache.commons.beanutils">

<level value="OFF"/>

</logger>

 

<logger name="org.apache.commons.digester.Digester.sax">

<level value="OFF"/>

</logger>

 

<logger name="org.apache.commons.digester.Digester">

<level value="OFF"/>

</logger>

 

Thank you for your help!

Best regards

Darek Filipski

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...