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