Special thanks to this blog. This is the best blog on log4j configuration for Grails I've ever read.
- If you wanna reference your own configuration in log4j config section, use
Holders
as shown - If you wanna use DailyRollingFileAppender or any other appenders that are not pre-loaded, please import
org.apache.log4j.*
- You can define variables like that
- You can use different environment settings
My config.groovy
Rollover at midnight each day not working . It only saves single file app.log without date ,According to the documentation ,there should be 1 log each day which should roll over at midnight eachday .Is there something that i am missing?