Log4J Basic Config

Download Template
Apache Log4J basic configuration file Test edit.

dmcnelis
February 17, 2012




log4j.debug=TRUE
log4j.rootLogger=%{root_logging_level}%, R

log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=%{log_file_name}%
log4j.appender.R.MaxFileSize=100KB
log4j.appender.R.MaxBackupIndex=5
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSSS} %p %t %c \u2013 %m%n

log4j.logger.%{base_package_to_log}%=%{base_package_logging_level}%

You must be logged in to comment.