log4j.rootLogger=DEBUG, CONSOLE, FILE

# Console
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=[%-4p] %m%n
 
# File
log4j.appender.FILE=org.apache.log4j.FileAppender
log4j.appender.FILE.File=logs.txt
log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
log4j.appender.FILE.layout.ConversionPattern=[%-4p] %m%n
 
# Set the loggers levels
log4j.appender.CONSOLE.Threshold = INFO
log4j.appender.FILE.Threshold = ALL

log4j.rootLogger=DEBUG, CONSOLE, FILE

# Console
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=[%-4p] %m%n
 
# File
log4j.appender.FILE=org.apache.log4j.FileAppender
log4j.appender.FILE.File=logs.txt
log4j.appender.FILE.Append=false
log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
log4j.appender.FILE.layout.ConversionPattern=[%-4p] %m%n
 
# Set the loggers levels
log4j.appender.CONSOLE.Threshold = INFO
log4j.appender.FILE.Threshold = ALL

Clear the logs file at each startup.
Clear the logs file at each startup.
