#
# Sample log4j configuration for the MOA-SL web service
#

# commons-logging setup
org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.Log4jFactory

# Configure root logger and loggers for moa-spss
log4j.rootLogger=info, stdout
log4j.logger.slinterface=info, moasl

# Configure the 'stdout' appender to write logging output to the console
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p | %d{dd HH:mm:ss,SSS} | %20c |  %10t | %m%n

# Configure the 'moasl' appender to write moa-sl related logging output
# to the file 'logs/moa-sl.log'. The file is rolled over every 1000KB,
# and a maximum history of 10 log files is being kept.
log4j.appender.moasl=org.apache.log4j.RollingFileAppender
log4j.appender.moasl.File=logs/moa-sl.log
log4j.appender.moasl.MaxFileSize=1000KB
log4j.appender.moasl.MaxBackupIndex=10
log4j.appender.moasl.layout=org.apache.log4j.PatternLayout
log4j.appender.moasl.layout.ConversionPattern=%5p | %d{dd HH:mm:ss,SSS} | %20c |  %10t | %m%n