Results 1 to 1 of 1
- 11-25-2008, 07:43 AM #1
How to disable one particular Log.Level in log4j
Hi,
This is my log4j.properties file. I have written a class DBDemo1, in this class i have written different level log messages. when I am running this, all messages are getting logged. Now I want not to print WARN messages (ALL except WARN).
Could anybody tell me how to do?
log4j.rootLogger=DEBUG, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppe nder
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.Patt ernLayout
log4j.appender.stdout.layout.ConversionPattern=%-4r %-5p [%t] %c{2}.%M[%L] - %m%n
log4j.logger.DBDemo1=ALLThanks,
Ranga Bhupal :)
Similar Threads
-
Some Questions - from old test papers 100 level
By Julie in forum New To JavaReplies: 5Last Post: 09-03-2008, 06:20 AM -
Row level locking........
By jithan in forum New To JavaReplies: 0Last Post: 09-02-2008, 07:09 AM -
row level locking
By jithan in forum New To JavaReplies: 1Last Post: 08-28-2008, 06:42 PM -
Field Level Security
By narayanasgs in forum Web FrameworksReplies: 0Last Post: 05-30-2008, 08:34 AM -
Java Debug Level
By keshari in forum New To JavaReplies: 1Last Post: 05-26-2008, 08:23 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks