1 # don't limit by the logging level, and use two appenders.
\r
2 log4j.rootCategory=, TTY, LOGFILE
\r
4 # TTY is set to be a ConsoleAppender using a PatternLayout.
\r
5 log4j.appender.TTY=org.apache.log4j.ConsoleAppender
\r
6 log4j.appender.TTY.Threshold=DEBUG
\r
7 log4j.appender.TTY.layout=org.apache.log4j.PatternLayout
\r
8 log4j.appender.TTY.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p [%-28c{2}] - %m{nolookups}%n
\r
10 #NOTE: vulnerability with bare percent m style: https://news.ycombinator.com/item?id=29507263
\r
12 # LOGFILE is set to be a RollingFileAppender using a PatternLayout.
\r
13 log4j.appender.LOGFILE=org.apache.log4j.RollingFileAppender
\r
14 log4j.appender.LOGFILE.File=dragdrop_test.log
\r
15 log4j.appender.LOGFILE.MaxFileSize=10MB
\r
16 log4j.appender.LOGFILE.MaxBackupIndex=10
\r
17 log4j.appender.LOGFILE.Threshold=DEBUG
\r
18 log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
\r
19 log4j.appender.LOGFILE.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p [%-28c{2}] - %m{nolookups}%n
\r