diff options
Diffstat (limited to 'net-news/nntprss/files/log4j.properties')
-rw-r--r-- | net-news/nntprss/files/log4j.properties | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/net-news/nntprss/files/log4j.properties b/net-news/nntprss/files/log4j.properties new file mode 100644 index 0000000..b9401d8 --- /dev/null +++ b/net-news/nntprss/files/log4j.properties @@ -0,0 +1,22 @@ +# Set root logger level to DEBUG and its only appender to CONSOLE.
+log4j.rootLogger=DEBUG, CONSOLE, FILE
+
+# Only log INFO and higher for wire class
+log4j.logger.httpclient.wire=INFO
+
+log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
+log4j.appender.FILE=org.apache.log4j.RollingFileAppender
+
+# Both CONSOLE and FILE use PatternLayout.
+log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
+log4j.appender.CONSOLE.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%t] %-5p %c{1} - %m%n
+
+log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
+log4j.appender.FILE.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%t] %-5p %c{1} - %m%n
+log4j.appender.FILE.File=/var/log/nntprss.log
+log4j.appender.FILE.Append=false
+log4j.appender.FILE.MaxFileSize=500KB
+log4j.appender.FILE.MaxBackupIndex=1
+log4j.appender.FILE.Threshold=INFO
+
+
|