This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes log4j question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "log4j question" Watch "log4j question" New topic
Author

log4j question

Mike Broadbear
Ranch Hand

Joined: Jan 14, 2002
Posts: 39
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

Joined: Jan 14, 2002
Posts: 39
I figured it out.

Just add a logger to the properties file:

log4j.logger.(package.prefix)=INFO
 
Don't get me started about those stupid light bulbs.
 
subject: log4j question