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

Provide support for registering Filter with all configured appenders

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Commons Log 4.0.4
    • Component/s: Commons
    • Labels:
      None

      Description

      Current Logback support provides support for registering Filter as OSGi services [1]. This only supports registering against known appenders.

      If we need to have a logic which needs to handle/listen to all WARN and above log messages that needs to get logged then only way for now is to register a TurboFilter which has performance cost. To support such cases the Filter support should enable registering a Filter instance against all configured appenders. This would allow such a Filter to listen to all logged messages without the performance cost

      [1] https://sling.apache.org/documentation/development/logging.html#filters-as-osgi-services

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: