Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

log4j question  RSS feed

 
Mike Broadbear
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have an application that logs trace level, but a certain class outputs too much information and I do not have access to that source. Is there a way to continue to log trace level, but to ignore logging (or change the log level) for only that class?

 
Mike Broadbear
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I figured it out.

Just add a logger to the properties file:

log4j.logger.(package.prefix)=INFO
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!