Updated logging config for statdb task during build
authorJim Procter <j.procter@dundee.ac.uk>
Fri, 17 Dec 2021 17:09:04 +0000 (17:09 +0000)
committerJim Procter <j.procter@dundee.ac.uk>
Fri, 17 Dec 2021 17:09:04 +0000 (17:09 +0000)
build.xml
log/log4j.statdb.properties [moved from log/log4j.properties.statdb with 58% similarity]

index e869d1e..256cb45 100644 (file)
--- a/build.xml
+++ b/build.xml
        <target name="clearStatDB" description="Remove all records from statistics database">
                <echo>Cleaning Statistics database</echo>
                <java classname="compbio.stat.collector.StatDB" fork="true" failonerror="true" classpath="${classes}">
-                       <jvmarg value="-Dlog4j.configurationFile=log/log4j.properties.statdb" />
+                       <jvmarg value="-Dlog4j.configurationFile=log/log4j.statdb.properties" />
                        <classpath refid="project.classpath" />
                </java>
        </target>
similarity index 58%
rename from log/log4j.properties.statdb
rename to log/log4j.statdb.properties
index f9541b0..7669ab1 100644 (file)
 ## FATAL - log fatal events only\r
 \r
 ##################################################################################################################################\r
-log4j.rootLogger=ERROR, R\r
-log4j.appender.R=org.apache.log4j.FileAppender\r
-log4j.appender.R.File=logs/StatDBcleaningErrorFile.log\r
-log4j.appender.R.layout=org.apache.log4j.PatternLayout\r
-log4j.appender.R.layout.ConversionPattern=%m%n %d{MM-dd@HH:mm:ss} %-5p (%13F:%L) %3x - \r
+\r
+appender.R.type = File\r
+appender.R.name = R\r
+appender.R.fileName = logs/StatDBcleaningErrorFile.log\r
+appender.R.layout.type = PatternLayout\r
+appender.R.layout.pattern = %m%n %d{MM-dd@HH:mm:ss} %-5p (%13F:%L) %3x - \r
 \r
 # %d{ABSOLUTE} %5p %c{1}:%L -\r
-log4j.logger.compbio=WARN, B\r
-log4j.appender.B=org.apache.log4j.FileAppender\r
-log4j.appender.B.File=logs/StatDBcleaningWarningFile.log\r
-log4j.appender.B.layout=org.apache.log4j.PatternLayout\r
-log4j.appender.B.layout.ConversionPattern=%m%n %d{MM-dd@HH:mm:ss} %-5p (%13F:%L) %3x - \r
+appender.B.name = B\r
+appender.B.type = File\r
+appender.B.fileName = logs/StatDBcleaningWarningFile.log\r
+appender.B.layout.type = PatternLayout\r
+appender.B.layout.pattern = %m%n %d{MM-dd@HH:mm:ss} %-5p (%13F:%L) %3x - \r
+\r
+logger.compbio.name = compbio\r
+logger.compbio.level = WARN\r
+logger.compbio.appenderRef = B\r
+\r
+rootLogger.level = info\r
+rootLogger.appenderRef = R\r