# module is meant for messages written module specific files
#
output.normal=%d{ISO8601} %-5p [%t] (%13F:%L) %c{2}: %m%n
output.error=%d{ISO8601} %-5p [%t] (%13F:%L): %m%n
output.module=%d{ISO8601} %-5p [%t] (%13F:%L): %m%n
#
# configure root category
# note that this configuration is inherited by all other categories (see
# example below if you want to suppress this behaviour)
#
log4j.rootCategory=DEBUG, consolefile, errorfile, messagefile
# everything goes to console.log
# rolling by log size. For other rolling options, see
# http://logging.apache.org/log4j/docs/api/index.html
#
log4j.appender.consolefile=org.apache.log4j.RollingFileAppender
log4j.appender.consolefile.MaxFileSize=100MB
log4j.appender.consolefile.MaxBackupIndex=10
log4j.appender.consolefile.File=${kanaha.logs}/console.log
log4j.appender.consolefile.layout=org.apache.log4j.PatternLayout
log4j.appender.consolefile.layout.ConversionPattern=${output.normal}
log4j.appender.consolefile.threshold=info
log4j.appender.consolefile.append=true
# errors to trace log file, for FFDC
# rolling by log size
#
log4j.appender.errorfile=org.apache.log4j.RollingFileAppender
log4j.appender.errorfile.MaxFileSize=10MB
log4j.appender.errorfile.MaxBackupIndex=10
log4j.appender.errorfile.File=${kanaha.logs}/trace.log
log4j.appender.errorfile.layout=org.apache.log4j.PatternLayout
log4j.appender.errorfile.layout.ConversionPattern=${output.error}
log4j.appender.errorfile.threshold=error
log4j.appender.errorfile.append=true
# globalized message log to msg.log (user log)
# rolling by log size
#
log4j.appender.messagefile=org.apache.log4j.RollingFileAppender
log4j.appender.messagefile.MaxFileSize=10MB
log4j.appender.messagefile.MaxBackupIndex=10
log4j.appender.messagefile.File=${kanaha.logs}/msg.log
log4j.appender.messagefile.layout=org.apache.log4j.PatternLayout
log4j.appender.messagefile.layout.ConversionPattern=${output.normal}
log4j.appender.messagefile.threshold=MSG_INFO#com.thinkdynamics.kanaha.
util.logging.MessageLevel
log4j.appender.messagefile.append=true
# suppress annoying messages from datacentermodel
log4j.category.com.thinkdynamics.kanaha.datacentermodel=INFO
#
# examples
#
# suppress writing dcm messages to console.log
#
#log4j.category.com.thinkdynamics.kanaha.datacentermodel=INFO,
datacentermodel, errorfile
#log4j.additivity.com.thinkdynamics.kanaha.datacentermodel=false
#log4j.appender.datacentermodel=org.apache.log4j.FileAppender
#log4j.appender.datacentermodel.File=${kanaha.logs}/datacentermodel.log
Chapter 4. Locating and configuring log files 41