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
master
baka 2017-08-30 14:24:14 +00:00
parent 9c7badbb42
commit bc4fe63b24
1 changed files with 24 additions and 5 deletions

View File

@ -1,16 +1,35 @@
# To customize logging, copy this file to # To customize logging, copy this file to
# $CCM_HOME/WEB-INF/log4j2.properties and edit it appropriately. # $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... # Choose one of the following lines, or make up your own...
#log4j.rootCategory=WARN, console, file #log4j.rootCategory=WARN, console, file
#log4j.rootCategory=WARN, syslog #log4j.rootCategory=WARN, syslog
#log4j.rootCategory=WARN, console #log4j.rootCategory=WARN, console
log4j.rootCategory=ERROR, console
# Sets up a console (standard out) appender. # 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 # Sends messages to a file. Uncomment this block & the alternate
# 'log4j.rootCategory' line above. # 'log4j.rootCategory' line above.
@ -34,7 +53,7 @@ log4j.appender.console=org.apache.log4j.ConsoleAppender
# Widely used logging output # Widely used logging output
# ========================== # ==========================
# For seeing progress of container startup process # 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 # For seeing progress of main runtime initialization process
#log4j.logger.com.arsdigita.runtime.CCMResourceManager=INFO #log4j.logger.com.arsdigita.runtime.CCMResourceManager=INFO