You probably have a log4j.properties file somewhere in the project. In this file you can configure what level of debug output you want. See this example:
log4j.rootLogger=info, console log4j.appender.console=org.apache.log4j.ConsoleAppender log4j.appender.console.layout=org.apache.log4j.PatternLayout log4j.appender.console.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n log4j.logger.com.example=debug
The first line sets the log level for the root logger to "info", i.e. only information, a warning, an error and a fatal file (which is indicated below by the application below) will be printed to the console.
The last line sets the logger for com.example. * (if you get your logs using LogFactory.getLogger(getClass()) ) will be at the debug level, that is, debug will also be printed.
Thomas Lรถtzer Nov 04 '09 at 12:32 2009-11-04 12:32
source share