a65559fa96
1. use our own log4j.properties file instead of having grails auto-generate one 2. modify web.xml template to use spring's log4config listener instead of grail's one 3. remove duplicate slf4j library 4. leave log4j DSL in Config.groovy to enable logging when developing and running "grails run-war" 5. log is written to /var/log/bigbluebutton/bbb-web.log git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@3231 af16638f-c34d-0410-8cfa-b39d5352b314
50 lines
1.8 KiB
Properties
50 lines
1.8 KiB
Properties
# This custom log4j.properties file is a workaround for problem with logging when
|
|
# deployed to Tomcat. This goes hand-in-hand with src/templates/war/web.xml
|
|
# Taken from /home/firstuser/dev/tools/grails-1.1.1/src/war/WEB-INF/log4j.properties (ralam - jan 6, 2010)
|
|
log4j.rootLogger=DEBUG, stdout, logfile
|
|
|
|
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
|
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
|
log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - <%m>%n
|
|
|
|
log4j.appender.logfile=org.apache.log4j.RollingFileAppender
|
|
log4j.appender.logfile.File=/var/log/bigbluebutton/bbb-web.log
|
|
log4j.appender.logfile.MaxFileSize=1MB
|
|
# Keep three backup files.
|
|
log4j.appender.logfile.MaxBackupIndex=3
|
|
# Pattern to output: date priority [category] - message
|
|
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
|
|
log4j.appender.logfile.layout.ConversionPattern=%d %p [%c] - %m%n
|
|
|
|
|
|
log4j.logger.org.codehaus.groovy.grails.web.servlet=WARN
|
|
log4j.logger.org.codehaus.groovy.grails.web.pages=WARN
|
|
log4j.logger.org.codehaus.groovy.grails.web.sitemesh=WARN
|
|
log4j.logger.org.codehaus.groovy.grails.web.mapping.filter=WARN
|
|
log4j.logger.org.codehaus.groovy.grails.web.mapping=WARN
|
|
log4j.logger.org.codehaus.groovy.grails.web.binding=WARN
|
|
log4j.logger.org.codehaus.groovy.grails.commons=WARN
|
|
log4j.logger.org.codehaus.groovy.grails.plugins=WARN
|
|
log4j.logger.org.codehaus.groovy.grails.orm.hibernate=WARN
|
|
log4j.logger.org.codehaus.groovy.grails.context.support=WARN
|
|
|
|
# Spring
|
|
log4j.logger.org.springframework=WARN
|
|
|
|
# Hibernate
|
|
log4j.logger.org.hibernate=WARN
|
|
|
|
# Mortbay
|
|
log4j.logger.org.mortbay.log=WARN
|
|
|
|
# ActiveMQ
|
|
log4j.logger.org.apache.activemq=WARN
|
|
|
|
# JSecurity
|
|
log4j.logger.org.jsecurity=WARN
|
|
|
|
# BigBlueButton
|
|
log4j.logger.org.bigbluebutton=DEBUG
|
|
log4j.logger.grails.app.controller=DEBUG
|
|
log4j.logger.grails.app.service=DEBUG
|