Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Logging entries appearing twice

661599Jan 27 2011 — edited Jan 27 2011
Hi,

I've a problem with log4j and Apache Commons Logging that I'm hoping someone can assist with. Logging appears twice in my application logs. I've a single log4j and a single commons-logging jar on my classpath. My log4j.properties simply contains the following:

log4j.rootLogger=ERROR, A1

log4j.appender.A1=org.apache.log4j.ConsoleAppender

This writes to wrapper.log in my Tomcat logs directory, with duplicate entries for each log.

Can anyone advise me on what the problem may be here?

THanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 24 2011
Added on Jan 27 2011
1 comment
413 views