From 1ec26d58d8eb8326869696b3ccf2427596144c9b Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 20 Jan 2006 18:01:37 +0000 Subject: [PATCH] added Appender for the VAMSAS session. git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@157 be28352e-c001-0410-b1a7-c7978e42abec --- resources/log4j.properties | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/resources/log4j.properties b/resources/log4j.properties index 9904301..3b41e89 100644 --- a/resources/log4j.properties +++ b/resources/log4j.properties @@ -1,15 +1,16 @@ # Set root category priority to INFO and its only appender to CONSOLE. log4j.rootCategory=INFO, CONSOLE #log4j.rootCategory=INFO, CONSOLE, LOGFILE -#log4j.logger.org.vamsas=INFO, CONSOLE +log4j.logger.org.vamsas=INFO + # Set the enterprise logger category to FATAL and its only appender to CONSOLE. log4j.logger.org.apache.axis.enterprise=FATAL, CONSOLE # CONSOLE is set to be a ConsoleAppender using a PatternLayout. log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender -log4j.appender.CONSOLE.Threshold=INFO +#log4j.appender.CONSOLE.Threshold=INFO log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout -log4j.appender.CONSOLE.layout.ConversionPattern=- %m%n +log4j.appender.CONSOLE.layout.ConversionPattern=%t - %m%n # LOGFILE is set to be a File appender using a PatternLayout. log4j.appender.LOGFILE=org.apache.log4j.FileAppender @@ -18,3 +19,12 @@ log4j.appender.LOGFILE.Append=true log4j.appender.LOGFILE.Threshold=INFO log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout log4j.appender.LOGFILE.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n + +# SESSIONFILE is the session file for a vamsas session. +log4j.appender.SESSION_LOG=org.apache.log4j.FileAppender +log4j.appender.SESSION_LOG.File=SessionLog.log +log4j.appender.SESSION_LOG.Append=true +log4j.appender.SESSION_LOG.Threshold=INFO +log4j.appender.SESSION_LOG.layout=org.apache.log4j.PatternLayout +# need to optimise this a bit. +log4j.appender.SESSION_LOG.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n -- 1.7.10.2