I'd like to reintroduce the option of logging to a file that has the current date in it.
For example, when the app starts up, it will start logging to myapp-20150821.log. At midnight, it starts logging to a new file named myapp-20150822.log.
Log4j2's RollingFileAppender does not support this. In log4j2 the file appender will log to one file with a static file name, and then the content is moved over to another file.
This used to be a feature in log4j 1.3, when using extras. I would configure it like this:
The only way I found that it would work in log4j2 is to use the following code, but that's pretty hacky: