Last active
August 29, 2015 14:16
-
-
Save rufer7/bf26f950970eb1fc95e7 to your computer and use it in GitHub Desktop.
Log4j - rolling file appender sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log4j.logger.org.web.rufer.sample=DEBUG,ROLLINGFILEAPPENDER | |
## Rolling file appender sample | |
log4j.appender.ROLLINGFILEAPPENDER=org.apache.log4j.RollingFileAppender | |
log4j.appender.ROLLINGFILEAPPENDER.File=${catalina.base}/logs/sample.log | |
log4j.appender.ROLLINGFILEAPPENDER.MaxFileSize=25mb | |
log4j.appender.ROLLINGFILEAPPENDER.MaxBackupIndex=3 | |
log4j.appender.ROLLINGFILEAPPENDER.layout=org.apache.log4j.PatternLayout | |
log4j.appender.ROLLINGFILEAPPENDER.layout.ConversionPattern=%d{ISO8601} %-5p %-85.85c - %m%n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment