Skip to content

Instantly share code, notes, and snippets.

@gdusbabek
Created September 21, 2010 16:25
Show Gist options
  • Save gdusbabek/589967 to your computer and use it in GitHub Desktop.
Save gdusbabek/589967 to your computer and use it in GitHub Desktop.
# output messages into a rolling log file as well as stdout
log4j.rootLogger=TRACE,stdout
# stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Threshold=DEBUG
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p %d{HH:mm:ss,SSS} [%t] %l %m%n
# rolling log file
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.Threshold=TRACE
log4j.appender.file.maxFileSize=200MB
log4j.appender.file.maxBackupIndex=500
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%5p %d{HH:mm:ss,SSS} [%t] %m%n
# Edit the next line to point to your logs directory
log4j.appender.R.File=/Users/gary.dusbabek/Desktop/1.log
log4j.logger.org.apache.cassandra.gms=WARN
log4j.logger.org.apache.cassandra.thrift=WARN
log4j.logger.org.apache.cassandra.io.sstable=DEBUG
log4j.logger.org.apache.cassandra.io.util.FileUtils=DEBUG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment