Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

log4j question

 
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic