From 9e61fb01aaacabe097b27a10e64944d91a061fa9 Mon Sep 17 00:00:00 2001 From: SanthoshVasabhaktula Date: Thu, 30 Jul 2015 00:08:59 +0530 Subject: [PATCH] staging server specific configurations --- src/main/config/log4j.prod.properties | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/main/config/log4j.prod.properties b/src/main/config/log4j.prod.properties index 298e2cdb9..ef592ca2c 100644 --- a/src/main/config/log4j.prod.properties +++ b/src/main/config/log4j.prod.properties @@ -10,9 +10,20 @@ log4j.appender.CONSOLE.layout.ConversionPattern=%d{ISO8601} [%t] (%C:%L) %-5p %m log4j.appender.ROLLINGFILE=org.apache.log4j.RollingFileAppender log4j.appender.ROLLINGFILE.Threshold=INFO -log4j.appender.ROLLINGFILE.File=/mnt/secor_data/logs/secor-${secor_group}.log +log4j.appender.ROLLINGFILE.File=/tmp/secor_data/logs/secor-${secor_group}.log # keep log files up to 1G log4j.appender.ROLLINGFILE.MaxFileSize=20MB log4j.appender.ROLLINGFILE.MaxBackupIndex=50 log4j.appender.ROLLINGFILE.layout=org.apache.log4j.PatternLayout log4j.appender.ROLLINGFILE.layout.ConversionPattern=%d{ISO8601} [%t] (%C:%L) %-5p %m%n + +log4j.appender.ROLLINGFILE2=org.apache.log4j.RollingFileAppender +log4j.appender.ROLLINGFILE2.Threshold=DEBUG +log4j.appender.ROLLINGFILE2.File=/home/ubuntu/secor-dist/logs/secor-uploader.log +# keep log files up to 1G +log4j.appender.ROLLINGFILE2.MaxFileSize=200MB +log4j.appender.ROLLINGFILE2.MaxBackupIndex=5 +log4j.appender.ROLLINGFILE2.layout=org.apache.log4j.PatternLayout +log4j.appender.ROLLINGFILE2.layout.ConversionPattern=%d{ISO8601} [%t] (%C:%L) %-5p %m%n + +log4j.logger.com.pinterest.secor.uploader.Uploader=DEBUG, ROLLINGFILE2 \ No newline at end of file