From: Jim Procter Date: Fri, 17 Dec 2021 17:25:06 +0000 (+0000) Subject: Minimal log4j->log4j2 config properties - some of these are not used in JABAWS 2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=e10ce872d66998630e1718596de4facc03816ae3;p=jabaws.git Minimal log4j->log4j2 config properties - some of these are not used in JABAWS 2 --- diff --git a/build.xml b/build.xml index 256cb45..00dfb50 100644 --- a/build.xml +++ b/build.xml @@ -84,7 +84,7 @@ - + @@ -119,7 +119,7 @@ --> - + @@ -161,7 +161,7 @@ --> - + @@ -450,7 +450,7 @@ - + diff --git a/log/log4j.properties.dundee b/log/log4j.properties.dundee deleted file mode 100644 index afcc70b..0000000 --- a/log/log4j.properties.dundee +++ /dev/null @@ -1,51 +0,0 @@ - -# change this -logDir =/homes/www-jws2/logs - -log4j.rootLogger=ERROR, stdout -log4j.appender.stdout=org.apache.log4j.ConsoleAppender -log4j.appender.stdout.Target=System.out -log4j.appender.stdout.layout=org.apache.log4j.PatternLayout -log4j.appender.stdout.layout.ConversionPattern=%m%n - -log4j.logger.compbio=TRACE, ACTIVITY -log4j.appender.ACTIVITY=org.apache.log4j.RollingFileAppender -log4j.appender.ACTIVITY.File=${logDir}/activity.log -log4j.appender.ACTIVITY.MaxFileSize=10MB -log4j.appender.ACTIVITY.MaxBackupIndex=10000 -log4j.appender.ACTIVITY.layout=org.apache.log4j.PatternLayout -log4j.appender.ACTIVITY.layout.ConversionPattern=%d{MM-dd@HH:mm:ss} %-5p %3x - %m%n - -log4j.logger.ClustalWS-stats=INFO, STAT -log4j.logger.MuscleWS-stats=INFO, STAT -log4j.logger.TcoffeeWS-stats=INFO, STAT -log4j.logger.MafftWS-stats=INFO, STAT -log4j.logger.ProbconsWS-stats=INFO, STAT -log4j.appender.STAT=org.apache.log4j.RollingFileAppender -log4j.appender.STAT.File=${logDir}/wsaccess.log -log4j.appender.STAT.MaxFileSize=10MB -log4j.appender.STAT.MaxBackupIndex=10000 -log4j.appender.STAT.layout=org.apache.log4j.PatternLayout -log4j.appender.STAT.layout.ConversionPattern=%t %d %m%n - - -# Uncomment for separate local engine execution log -#log4j.logger.compbio.engine.local.LocalExecutorService=INFO, C -#log4j.appender.C=org.apache.log4j.FileAppender -#log4j.appender.C.File=LocalExecutorService.log -#log4j.appender.C.layout=org.apache.log4j.PatternLayout -#log4j.appender.C.layout.ConversionPattern=%m%n - -#Parameter combinator logger (testing only) -#log4j.logger.RunnerLogger=ERROR, RUNNER -#log4j.appender.RUNNER=org.apache.log4j.FileAppender -#log4j.appender.RUNNER.File=RunnerParam.log -#log4j.appender.RUNNER.layout=org.apache.log4j.PatternLayout -#log4j.appender.RUNNER.layout.ConversionPattern=%r [%t] %p %c %x - %m%n - - -#Not used - collection of patterns -# %d{ABSOLUTE} %5p %c{1}:%L - -#log4j.appender.C.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n -# %d{MM-dd@HH:mm:ss} %-5p (%13F:%L) %3x - -#log4j.appender.ClustalWS-stats.layout.ConversionPattern=%p %d %t %C{4} %m%n diff --git a/log/log4j2.dundee.properties b/log/log4j2.dundee.properties new file mode 100644 index 0000000..f7caed0 --- /dev/null +++ b/log/log4j2.dundee.properties @@ -0,0 +1,98 @@ +status = error +dest = err +name = PropertiesConfig + +#dest = err +#name = dundee + +# change this +property.logDir = www-jws2-logs + + +appender.stdout.type = Console +appender.stdout.name = stdout +appender.stdout.layout.type = PatternLayout +appender.stdout.layout.pattern = %m%n +appender.stdout.filter.threshold.type = ThresholdFilter +appender.stdout.filter.threshold.level = ERROR + +rootLogger.level = ERROR +rootLogger.appenderRef.stdout.ref = stdout + +appender.ACTIVITY.type = RollingFile +appender.ACTIVITY.name = ACTIVITY +appender.ACTIVITY.fileName = ${logDir}/activity.log +appender.ACTIVITY.filePattern = ${logDir}/activity-%d{MM-dd-yy-HH-mm-ss}-%i.log.gz +appender.ACTIVITY.policies.type = Policies +appender.ACTIVITY.policies.size.type = SizeBasedTriggeringPolicy +appender.ACTIVITY.policies.size.size = 10MB +appender.ACTIVITY.strategy.type = DefaultRolloverStrategy +appender.ACTIVITY.strategy.max = 10000 +appender.ACTIVITY.layout.type = PatternLayout +appender.ACTIVITY.layout.pattern = %d{MM-dd@HH:mm:ss} %-5p %3x - %m%n + + +logger.compbio.level = INFO +logger.compbio.name = compbio +logger.compbio.appenderRef.ACTIVITY.ref = ACTIVITY + + +appender.STAT.type = RollingFile +appender.STAT.name = STAT +appender.STAT.fileName = ${logDir}/wsaccess.log +appender.STAT.filePattern = ${logDir}/wsaccess-%d{MM-dd-yy-HH-mm-ss}-%i.log.gz +appender.STAT.policies.type = Policies +appender.STAT.policies.size.type = SizeBasedTriggeringPolicy +appender.STAT.policies.size.size = 10MB +appender.STAT.strategy.type = DefaultRolloverStrategy +appender.STAT.strategy.max = 10000 +appender.STAT.layout.type = PatternLayout +appender.STAT.layout.pattern = %d{MM-dd@HH:mm:ss} %-5p %3x - %m%n + +logger.ClustalWS-stats.name = ClustalWS-stats +logger.ClustalWS-stats.appenderRef.STAT.ref = STAT +logger.ClustalWS-stats.level = INFO + +logger.MuscleWS-stats.name = MuscleWS-stats +logger.MuscleWS-stats.appenderRef.STAT.ref = STAT +logger.MuscleWS-stats.level = INFO + +logger.TcoffeeWS-stats.name = TcoffeeWS-stats +logger.TcoffeeWS-stats.appenderRef.STAT.ref = STAT +logger.TcoffeeWS-stats.level = INFO + + +logger.MafftWS-stats.name = MafftWS-stats +logger.MafftWS-stats.appenderRef.STAT.ref = STAT +logger.MafftWS-stats.level = INFO + +logger.ProbconsWSstats.name = ProbconsWSstats +logger.ProbconsWSstats.appenderRef.STAT.ref = STAT +logger.ProbconsWSstats.level = INFO + + + + +# Uncomment for separate local engine execution log +# TODO - STILL LOG4J 1.2.x +#log4j.logger.compbio.engine.local.LocalExecutorService = INFO, C +#log4j.appender.C = org.apache.log4j.FileAppender +#log4j.appender.C.File = LocalExecutorService.log +#log4j.appender.C.layout = org.apache.log4j.PatternLayout +#log4j.appender.C.layout.ConversionPattern = %m%n + +#Parameter combinator logger (testing only) +# TODO - STILL LOG4J 1.2.x +#log4j.logger.RunnerLogger = ERROR, RUNNER +#log4j.appender.RUNNER = org.apache.log4j.FileAppender +#log4j.appender.RUNNER.File = RunnerParam.log +#log4j.appender.RUNNER.layout = org.apache.log4j.PatternLayout +#log4j.appender.RUNNER.layout.ConversionPattern = %r [%t] %p %c %x - %m%n + + +#Not used - collection of patterns +# TODO - STILL LOG4J 1.2.x +# %d{ABSOLUTE} %5p %c{1}:%L - +#log4j.appender.C.layout.ConversionPattern = %-4r [%t] %-5p %c %x - %m%n +# %d{MM-dd@HH:mm:ss} %-5p (%13F:%L) %3x - +#log4j.appender.ClustalWS-stats.layout.ConversionPattern = %p %d %t %C{4} %m%n diff --git a/log/log4j.properties b/log/log4j2.properties similarity index 82% rename from log/log4j.properties rename to log/log4j2.properties index cd2a406..ff3dc5d 100644 --- a/log/log4j.properties +++ b/log/log4j2.properties @@ -50,18 +50,27 @@ org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = FINE #log4j.appender.stdout.layout.ConversionPattern=%m%n #log4j.rootLogger=info, stdout -log4j.rootLogger=ERROR, R -log4j.appender.R=org.apache.log4j.FileAppender -log4j.appender.R.File=${catalina.base}/logs/JABAWSErrorFile.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.name = R +appender.R.type = File +appender.R.fileName = ${catalina.base}/logs/JABAWSErrorFile.log +appender.R.layout.type = PatternLayout +appender.R.layout.pattern=%m%n %d{MM-dd@HH:mm:ss} %-5p (%13F:%L) %3x - + +appender.B.name = B +appender.B.type = File +appender.B.fileName=${catalina.base}/logs/engine.log +appender.B.layout.type = PatternLayout +appender.B.layout.pattern=%m%n %d{MM-dd@HH:mm:ss} %-5p (%13F:%L) %3x - + +rootLogger.Level = ERROR +rootLogger.appenderRef = R # %d{ABSOLUTE} %5p %c{1}:%L - -log4j.logger.compbio=WARN, B -log4j.appender.B=org.apache.log4j.FileAppender -log4j.appender.B.File=${catalina.base}/logs/engine.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 - +logger.compbio.level = TRACE +logger.compbio.appenderRef = B +logger.compbio.name = compbio + # %d{ABSOLUTE} %5p %c{1}:%L - #log4j.logger.compbio.engine.local.LocalExecutorService=INFO, C