Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-3251

Enable Logback ChangeLevelDispatcher by default if JUL Integration is enabled

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Commons Log 4.0.0
    • Commons Log 4.0.0
    • Commons
    • None

    Description

      With Logback its possible to use ChangeLevelDispatcher [1] to minimize the performance impact. Currently one needs to explicitly enable in logback.xml via

      <configuration>
        <contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator"/>
      </configuration>
      

      It would be better if Logback Integration logic adds this listener on its own if the org.apache.sling.commons.log.julenabled is set to true without requiring explicit user effort to tweak Logback xml config

      [1] http://logback.qos.ch/manual/configuration.html#LevelChangePropagator

      Attachments

        Activity

          People

            chetanm Chetan Mehrotra
            chetanm Chetan Mehrotra
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: