Skip to content

Instantly share code, notes, and snippets.

@jrichardsz
Created May 30, 2014 05:03
Embed
What would you like to do?
File and Console stdout log4j.properties
log4j.rootCategory=INFO, stdout, file
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.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.File=/log/jforum-webapp.log
log4j.appender.file.MaxFileSize=5MB
log4j.appender.file.MaxBackupIndex=10
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d %p [%c] - %m %n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment