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

Add support for detaching DefaultContextSelector instances by using the ContextDetachingSCL

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.1.2
    • logback-classic

    Description

      Currently, the ContextDetachingSCL only supports detaching a ContextJNDISelector.

      If some other ContextSelector implementation is used, it would be nice if the ContextDetachingSCL gracefully stopped logback as described in chapter 3 of the logback manual.

      As a side effect, I think this type of implementation would provide the added benefit of gracefully stopping AsyncAppender instances instantiated as part of a web application context.

      Attached is an updated ContextDetachingSCL implementation that detaches the default context if no context is found via a JNDI lookup.

      Thoughts?

      Attachments

        Activity

          People

            logback-dev Logback dev list
            owen.farrell Owen Farrell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: