#------------------------------------------------------------------
# Root Logger
#------------------------------------------------------------------
# Root logger - is the root of all other loggers.
# Use DEBUG instead of INFO to change to debug level logging.
# InMemoryAppender is used for server monitor page to get the lastest 
# 200(configurable) events. ErrorDbAppender is used to log Error Event
# to database, it will not log any event lower Error level. 
log4j.rootLogger=INFO,FILE,ERRORLOG

#------------------------------------------------------------------
# Size Rolling File Appender
#------------------------------------------------------------------
# Log file name in the AMICAS log directory
log4j.appender.FILE.File=MergeViewerLaunchService.log
# Use a rolling file appender
log4j.appender.FILE=org.apache.log4j.RollingFileAppender
# only keep 100 log file, after this, the oldest one will be deleted
log4j.appender.FILE.MaxBackupIndex=500
# the size of one log file, after this, it rolls over the log 
log4j.appender.FILE.MaxFileSize=10MB
# Print the date in ISO 8601 format
log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
# Default log message pattern in the log file
log4j.appender.FILE.layout.ConversionPattern=%d %-5p [%c] (%t) %m%n

#------------------------------------------------------------------
# Size Rolling ERRORLOG
# only log error above events to the .errors file
#------------------------------------------------------------------
# Log file name in the AMICAS log directory
log4j.appender.ERRORLOG.File=MergeViewerLaunchService.errors
# Use a rolling file appender
log4j.appender.ERRORLOG=org.apache.log4j.RollingFileAppender
log4j.appender.ERRORLOG.Threshold=ERROR
# only keep this number of log files, after this, the oldest one will be deleted
log4j.appender.ERRORLOG.MaxBackupIndex=500
# the size of one log file, after this, it rolls over the log 
log4j.appender.ERRORLOG.MaxFileSize=10MB
# Print the date in ISO 8601 format
log4j.appender.ERRORLOG.layout=org.apache.log4j.PatternLayout
log4j.appender.ERRORLOG.layout.ConversionPattern=%d %-5p [%c] (%t) %m%n

#------------------------------------------------------------------
# DailyFile Appender
#------------------------------------------------------------------
# Log file name in the AMICAS log directory
# log4j.appender.DailyFile.File=Importer.log
# Use a rolling file appender
# log4j.appender.DailyFile=org.apache.log4j.DailyRollingFileAppender
# Roll to new file every day at midnight
# log4j.appender.DailyFile.DatePattern='.'yyyy-MM-dd
# Print the date in ISO 8601 format
# log4j.appender.DailyFile.layout=org.apache.log4j.PatternLayout
# Default log message pattern in the log file
# log4j.appender.DailyFile.layout.ConversionPattern=%d %-5p [%c] (%t) %m%n

#------------------------------------------------------------------
# DailyErrorLog
# only log error above events to the .errors file
#------------------------------------------------------------------
# Log file name in the AMICAS log directory
# log4j.appender.DailyErrorLog.File=Importer.errors
# Use a rolling file appender
# log4j.appender.DailyErrorLog=org.apache.log4j.DailyRollingFileAppender
# log4j.appender.DailyErrorLog.Threshold=ERROR
# Roll to new file every day at midnight
# log4j.appender.DailyErrorLog.DatePattern='.'yyyy-MM-dd
# Print the date in ISO 8601 format
# log4j.appender.DailyErrorLog.layout=org.apache.log4j.PatternLayout
# log4j.appender.DailyErrorLog.layout.ConversionPattern=%d %-5p [%c] (%t) %m%n


#------------------------------------------------------------------
# CONSOLE Appender
#------------------------------------------------------------------
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=%d %-5p [%c] (%t) %m%n


#------------------------------------------------------------------
# Customized loggers
#------------------------------------------------------------------
### log AMICAS data package ###
#log4j.logger.com.amicas.data=INFO

### log Hibernate ###
#log4j.logger.org.hibernate=INFO
#log4j.logger.net.sf.ehcache.config.Configurator=INFO

### log just the SQL used by Hibernate ###
#log4j.logger.org.hibernate.SQL=DEBUG 

### log JDBC bind parameters in Hibernate ###
#log4j.logger.org.hibernate.type=INFO

### log schema export/update in Hibernate ###
#log4j.logger.org.hibernate.tool.hbm2ddl=DEBUG

### log cache activity in Hibernate ###
#log4j.logger.org.hibernate.cache=DEBUG

### Turn off INFO logs from Hibernate ###
log4j.logger.org.hibernate=WARN

### Turn off INFO logs from Spring ###
log4j.logger.org.springframework=WARN
