From bc4fe63b24bc2e616dae3b4ac1e762a82a0a4805 Mon Sep 17 00:00:00 2001 From: baka Date: Wed, 30 Aug 2017 14:24:14 +0000 Subject: [PATCH] Changes to log4j2 configuration, now using new syntax of version 2. git-svn-id: https://svn.libreccm.org/ccm/trunk@4965 8810af33-2d31-482b-a856-94f89814c4df --- ccm-core/src/log4j2.properties | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/ccm-core/src/log4j2.properties b/ccm-core/src/log4j2.properties index 2b0f2a12e..0172c8ced 100755 --- a/ccm-core/src/log4j2.properties +++ b/ccm-core/src/log4j2.properties @@ -1,16 +1,35 @@ # To customize logging, copy this file to # $CCM_HOME/WEB-INF/log4j2.properties and edit it appropriately. + +name=LibreCCM Log4j2 Configuration +#property.filename = logs +appenders = console +#appenders = console, file + +appender.console.type = Console +appender.console.name = STDOUT +appender.console.layout.type = PatternLayout +appender.console.layout.pattern = %d{ISO8601} [%5.5t] %-5p %c{2} - %m%n + +#appender.file.type = File +#appender.file.name = LOGFILE +#appender.file.filename = ${filename}/ccm.log +#appender.file.layout.type = PatternLayout +#appender.file.layout.pattern = %d{ISO8601} [%5.5t] %-5p %c{2} - %m%n + +rootLogger.level = WARN +rootLogger.appenderRefs = stdout +rootLogger.appenderRefs.stdout.ref = STDOUT + +#logger.com.arsdigita.web.CCMApplicationContextListener.level = ERROR # Choose one of the following lines, or make up your own... #log4j.rootCategory=WARN, console, file #log4j.rootCategory=WARN, syslog #log4j.rootCategory=WARN, console -log4j.rootCategory=ERROR, console # Sets up a console (standard out) appender. -log4j.appender.console.layout=org.apache.log4j.PatternLayout -log4j.appender.console.layout.ConversionPattern=%d{ISO8601} [%5.5t] %-5p %c{2} - %m%n -log4j.appender.console=org.apache.log4j.ConsoleAppender + # Sends messages to a file. Uncomment this block & the alternate # 'log4j.rootCategory' line above. @@ -34,7 +53,7 @@ log4j.appender.console=org.apache.log4j.ConsoleAppender # Widely used logging output # ========================== # For seeing progress of container startup process -log4j.logger.com.arsdigita.web.CCMApplicationContextListener=ERROR +#log4j.logger.com.arsdigita.web.CCMApplicationContextListener=ERROR # For seeing progress of main runtime initialization process #log4j.logger.com.arsdigita.runtime.CCMResourceManager=INFO