Skip to content

Instantly share code, notes, and snippets.

@nickbarnwell
Last active December 17, 2015 07:29
Show Gist options
  • Save nickbarnwell/5573640 to your computer and use it in GitHub Desktop.
Save nickbarnwell/5573640 to your computer and use it in GitHub Desktop.
# Based on the example properties given at http://logging.apache.org/log4j/1.2/manual.html
# Set root logger level to DEBUG and its only appender to A1.
log4j.rootLogger=DEBUG,A1,file
# A1 is set to be a ConsoleAppender.
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.file=org.apache.log4j.FileAppender
# A1 uses PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern= %-5p %c - %m%n
log4j.appender.file.file=logs/log4j.log
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d %-5p %c - %m%n
log4j.logger.weaver.nlp.corpus-generation=DEBUG
log4j.logger.org.apache.http=ERROR
log4j.logger.org.apache.http.wire=ERROR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment