Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-204

file appender that rolls on startup

    XMLWordPrintable

Details

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • 1.5.7
    • None
    • logback-core
    • None

    Description

      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.

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            joekearney Joe Kearney
            Votes:
            20 Vote for this issue
            Watchers:
            19 Start watching this issue

            Dates

              Created:
              Updated: