Skip to content

Instantly share code, notes, and snippets.

@maleficarum
Created August 20, 2012 20:54
Show Gist options
  • Select an option

  • Save maleficarum/3407815 to your computer and use it in GitHub Desktop.

Select an option

Save maleficarum/3407815 to your computer and use it in GitHub Desktop.
Daily Appender for grails config
appenders {
console name:'stdout', layout:pattern(conversionPattern: '%d{ABSOLUTE} %-5p [%c] %m%n'), threshold: org.apache.log4j.Level.INFO
appender new org.apache.log4j.DailyRollingFileAppender(name: 'dailyAppender', threshold: org.apache.log4j.Level.INFO, datePattern: "'.'yyyy-MM-dd", fileName: "/tmp/log.log",layout: pattern(conversionPattern:'%d [%t] %-5p %c %x - %m%n'))
}
root {
debug 'stdout','dailyAppender'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment