From a238b7fcf199c37d95ac231b9632d7d833f4abea Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 17 Dec 2021 17:09:04 +0000 Subject: [PATCH] Updated logging config for statdb task during build --- build.xml | 2 +- ...j.properties.statdb => log4j.statdb.properties} | 28 +++++++++++++------- 2 files changed, 19 insertions(+), 11 deletions(-) rename log/{log4j.properties.statdb => log4j.statdb.properties} (58%) diff --git a/build.xml b/build.xml index e869d1e..256cb45 100644 --- a/build.xml +++ b/build.xml @@ -101,7 +101,7 @@ Cleaning Statistics database - + diff --git a/log/log4j.properties.statdb b/log/log4j.statdb.properties similarity index 58% rename from log/log4j.properties.statdb rename to log/log4j.statdb.properties index f9541b0..7669ab1 100644 --- a/log/log4j.properties.statdb +++ b/log/log4j.statdb.properties @@ -13,15 +13,23 @@ ## FATAL - log fatal events only ################################################################################################################################## -log4j.rootLogger=ERROR, R -log4j.appender.R=org.apache.log4j.FileAppender -log4j.appender.R.File=logs/StatDBcleaningErrorFile.log -log4j.appender.R.layout=org.apache.log4j.PatternLayout -log4j.appender.R.layout.ConversionPattern=%m%n %d{MM-dd@HH:mm:ss} %-5p (%13F:%L) %3x - + +appender.R.type = File +appender.R.name = R +appender.R.fileName = logs/StatDBcleaningErrorFile.log +appender.R.layout.type = PatternLayout +appender.R.layout.pattern = %m%n %d{MM-dd@HH:mm:ss} %-5p (%13F:%L) %3x - # %d{ABSOLUTE} %5p %c{1}:%L - -log4j.logger.compbio=WARN, B -log4j.appender.B=org.apache.log4j.FileAppender -log4j.appender.B.File=logs/StatDBcleaningWarningFile.log -log4j.appender.B.layout=org.apache.log4j.PatternLayout -log4j.appender.B.layout.ConversionPattern=%m%n %d{MM-dd@HH:mm:ss} %-5p (%13F:%L) %3x - +appender.B.name = B +appender.B.type = File +appender.B.fileName = logs/StatDBcleaningWarningFile.log +appender.B.layout.type = PatternLayout +appender.B.layout.pattern = %m%n %d{MM-dd@HH:mm:ss} %-5p (%13F:%L) %3x - + +logger.compbio.name = compbio +logger.compbio.level = WARN +logger.compbio.appenderRef = B + +rootLogger.level = info +rootLogger.appenderRef = R -- 1.7.10.2