# Direct log messages to stdout
# Root logger option
log4j.rootLogger=WARN,logfile,stdout
log4j.appender.logfile=org.apache.log4j.RollingFileAppender
log4j.appender.logfile.File=${catalina.base}/logs/cn.log
log4j.appender.logfile.MaxFileSize=50MB
# Keep one backup file
log4j.appender.logfile.maxBackupIndex=25
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
log4j.appender.logfile.layout.ConversionPattern=[%5p] %d (%C{1}:%M:%L) %m%n

### LOGGING TO CONSOLE #########################################################
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
# define the pattern to be used in the logs... 
log4j.appender.stdout.layout.ConversionPattern=%d{yyyyMMdd-HH:mm:ss}: [%p]: %m [%c]%n
log4j.logger.org.dataone=WARN
log4j.logger.org.dataone.cn.rest.v2.CoreController=DEBUG
