log4j.rootLogger=LOGFILE, CONSOLE, DEBUG, WARN, ERROR

# CONSOLE appender
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
#log4j.appender.CONSOLE.layout.ConversionPattern=%p %C{1} - %m\n
log4j.appender.CONSOLE.layout.ConversionPattern=%m\n
log4j.appender.CONSOLE.threshold=DEBUG

# LOGFILE appender
log4j.appender.LOGFILE=org.apache.log4j.FileAppender
log4j.appender.LOGFILE.file=./log/main.log
log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.LOGFILE.layout.ConversionPattern=[%t] %d %p %C{1} - %m\n
log4j.appender.LOGFILE.threshold=INFO
log4j.appender.LOGFILE.Append=false

# ERROR appender
log4j.appender.ERROR=org.apache.log4j.FileAppender
log4j.appender.ERROR.file=./log/error.log
log4j.appender.ERROR.layout=org.apache.log4j.PatternLayout
log4j.appender.ERROR.layout.ConversionPattern=[%t] %d %p %C{1} - %m\n
log4j.appender.ERROR.threshold=ERROR
log4j.appender.ERROR.Append=false

# DEBUG appender
log4j.appender.DEBUG=org.apache.log4j.FileAppender
log4j.appender.DEBUG.file=./log/debug.log
log4j.appender.DEBUG.layout=org.apache.log4j.PatternLayout
log4j.appender.DEBUG.layout.ConversionPattern=[%c] %m\n
#log4j.appender.DEBUG.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
log4j.appender.DEBUG.threshold=DEBUG
log4j.appender.DEBUG.Append=false

# WARN appender
log4j.appender.WARN=org.apache.log4j.FileAppender
log4j.appender.WARN.file=./log/warn.log
log4j.appender.WARN.layout=org.apache.log4j.PatternLayout
log4j.appender.WARN.layout.ConversionPattern=[%t] %d %p %c - %m\n
#log4j.appender.WARN.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
log4j.appender.WARN.threshold=WARN
log4j.appender.WARN.Append=false

# fine tuning
log4j.logger.de.hu_berlin.german.korpling.saltnpepper=DEBUG