Skip to content

Instantly share code, notes, and snippets.

@gphil
Created September 4, 2012 18:52
Show Gist options
  • Save gphil/3624967 to your computer and use it in GitHub Desktop.
Save gphil/3624967 to your computer and use it in GitHub Desktop.
Basic log4j Configuration
log4j.rootLogger=DEBUG, standard
log4j.appender.standard = org.apache.log4j.RollingFileAppender
log4j.appender.standard.File = logs/standard.log
log4j.appender.standard.MaxFileSize=1MB
log4j.appender.standard.MaxBackupIndex=1
log4j.appender.standard.layout=org.apache.log4j.PatternLayout
log4j.appender.standard.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment