2 14 LOG4J Logging Services

LANSA Integrator

2.14 LOG4J Logging Services

Several open source products used by LANSA Integrator use the Apache LOG4J logging services.

If you need to log a product that supports LOG4J, then add two lines to the log4j.properties file, one to turn on a logger and the other to stop log messages going up the hierarchy to the root logger.

 

log4j.logger.xyz=DEBUG, FILE

log4j.additivity.xyz=false

 

 

manager.properties

 

log4j.configuration=system/log4j.properties

 

log4j.properties

 

#!<studio-project id="20000000-000000" name="lansa">

#

# This file controls the logging strategy for the JSM server

#

# Levels - DEBUG, INFO, WARN, ERROR, FATAL

#

log4j.debug=true

log4j.rootLogger=INFO, STDOUT

#

# log4j.logger.org.apache.axis=DEBUG, FILE

# log4j.additivity.org.apache.axis=false

#

# log4j.logger.org.apache.commons.httpclient=DEBUG, FILE

# log4j.additivity.org.apache.commons.httpclient=false

#

# log4j.logger.org.apache.axis.transport.http.HTTPSender=DEBUG, FILE

# log4j.additivity.org.apache.axis.transport.http.HTTPSender=false

#

log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender

log4j.appender.STDOUT.threshold=INFO

log4j.appender.STDOUT.layout=org.apache.log4j.PatternLayout

log4j.appender.STDOUT.layout.ConversionPattern=[%d{ISO8601}] [%-5p] [%c] - %m%n

#

log4j.appender.FILE=org.apache.log4j.FileAppender

log4j.appender.FILE.file=LOG4J.TXT

log4j.appender.FILE.encoding=UTF-8

log4j.appender.FILE.append=false

log4j.appender.FILE.threshold=DEBUG

log4j.appender.FILE.layout=org.apache.log4j.PatternLayout

log4j.appender.FILE.layout.ConversionPattern=[%d{ISO8601}] [%-5p] [%c] - %m%n

#

#!</studio-project>