By AdministratorUpdated: Tuesday, 30 November 1999 00:00
Sample Log4j.properties
Friday, 20 May 2011 13:45
Sample Property file for Log4j
Find below a sample log4j property file who defines a console Appender and write from the DEBUG level to the ERROR level all messages for classes in and under the package
com.ubiteck
.
log4j.rootLogger=DEBUG, STDOUT
#
#
# STDOUT appender
log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender
log4j.appender.STDOUT.layout=org.apache.log4j.PatternLayout
log4j.appender.STDOUT.layout.ConversionPattern=%d %p [%t] %C{1} - %m\n
# use the STDOUT appender. set the level to INFO.
log4j.category.com.ubiteck=DEBUG