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

SiftingAppender - Timeout for closing unused appenders should be configurable

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • None
    • logback-core
    • None

    Description

      We are using SiftingAppender to direct logs for each job in our application to a separate file. These files are typically only written to a few times in pretty quick succession and then they're done. While the appender works well, we have found that we are creating jobs at a faster rate than it closes the sub-appenders, causing us to eventually run out of file descriptors. I know about AppenderTracker and will implement a solution using this, but this feels like this timeout value is something that should be configurable on the SiftingAppender. Or maybe just some kind of boolean to tell it to close sub-appenders more aggressively.

      Attachments

        Activity

          People

            logback-dev Logback dev list
            tbecker Tommy Becker
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: