Skip to content

Instantly share code, notes, and snippets.

@janosgyerik
Created May 29, 2012 14:24
Show Gist options
  • Save janosgyerik/2828720 to your computer and use it in GitHub Desktop.
Save janosgyerik/2828720 to your computer and use it in GitHub Desktop.
A very basic log4j.properties example
# Set root logger level to DEBUG and its only appender to A1.
log4j.rootLogger=DEBUG, A1
# A1 is set to be a ConsoleAppender.
log4j.appender.A1=org.apache.log4j.ConsoleAppender
# A1 uses PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d{ISO8601} - %-5p %c{1} - %m%n
# 2012-05-18 15:58:39,210 - DEBUG CLASSNAME_WITHOUT_DOMAIN - LOGMESSAGE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment