Imago and most of the Xenei packages uses the
log4j
logging package from Apache. The log4j configuration is defined in
the
log4j.properties
file. This file follows the
properties file layout specified in the log4j documentation.
Some servlet containers (e.g. Tomcat or JBoss) use the log4j system internally.
In those systems the
rootCategory
entries should be commented-out.
Example:
#log4j.rootCategory=DEBUG, ImagoLog, ImagoConsole
log4j.rootCategory=WARN, ImagoLog
log4j.category.org.xenei=WARN, ImagoLog
# turn down the pipeline messages (uncomment these when debugging)
#log4j.category.org.xenei.imago.pipeline=WARN
#log4j.category.org.xenei.imago.processmap=WARN
# ImagoLog is set to be a FileAppender
log4j.appender.ImagoLog=org.apache.log4j.FileAppender
# specify the file name below
log4j.appender.ImagoLog.File=imago.log
log4j.appender.ImagoLog.layout=org.apache.log4j.PatternLayout
log4j.appender.ImagoLog.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n
# ImagoConsole is set to be a ConsoleAppender
log4j.appender.ImagoConsole=org.apache.log4j.ConsoleAppender
log4j.appender.ImagoConsole.layout=org.apache.log4j.PatternLayout
log4j.appender.ImagoConsole.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n