File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes Suppress warn log for a single class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Suppress warn log for a single class" Watch "Suppress warn log for a single class" New topic

Suppress warn log for a single class

kayanaat sidiqui
Ranch Hand

Joined: Sep 04, 2008
Posts: 122
Hi All,
Let i am having four classes, class_1, class_2, class_3 and class_4. and
class_2, class_3 and class_4 extends class_1.

For all classes i have common appender file log_warn.log and log_error.log.

I have properly configured in log4j.xml so that only warn messages
will go into log_warn.log and error messages will go into log_error.log.

Now i want to suppress only warn messages for class_4.
How can we do that?
I agree. Here's the link:
subject: Suppress warn log for a single class
Similar Threads
can some one say what is wrong with my
Log4j - How to direct log messages to their respective log message file
Struts Validator Messages Property
Jboss Configuration Property
WARN level is not working