Skip to content

Instantly share code, notes, and snippets.

@jizhang
Created September 25, 2013 01:20
Show Gist options
  • Save jizhang/6693833 to your computer and use it in GitHub Desktop.
Save jizhang/6693833 to your computer and use it in GitHub Desktop.
basic log4j.properties
# Root logger option
log4j.rootLogger=INFO, stdout
# Direct log messages to stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d %-5p %c{1} - %m%n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment