History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LBCORE-149
Type: New Feature New Feature
Status: Open Open
Priority: Major Major
Assignee: Ceki Gulcu
Reporter: Joe Kearney
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
logback-core

file appender that rolls on startup

Created: 15/Apr/10 03:45 PM   Updated: 15/Apr/10 07:02 PM
Component/s: Appender, Rolling
Affects Version/s: None
Fix Version/s: None


 Description  « Hide
I'd like a file appender that can roll to a new file on startup.

Example:
* file name myApp.%d{yyyy-MM-dd}.%i.log
* if the process lasts the whole day, we get only one log file for that day, called myApp.2010-04-15.0.log
* if the process is restarted, we get multiple files for that day, myApp.2010-04-15.0.log, myApp.2010-04-15.1.log, ...

Currently, I believe that the best we can do with the out-of-the-box appenders/rollers is to either append to or overwrite a single file per day.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Ceki Gulcu - 15/Apr/10 05:54 PM
This issue strongly resembles a request expressed on stackoverflow:
http://stackoverflow.com/questions/2492022/how-to-roll-the-log-file-on-startup-in-logback

Joe Kearney - 15/Apr/10 07:02 PM
I saw that, but can't get it to work. I'll continue the thread there...