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=ALL