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

Let ThresholdFilter extend from AbstractMatcherFilter

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 1.1.2
    • logback-core
    • None

    Description

      Please let ThresholdFilter extend from AbstractMatcherFilter instead of directly from Filter so that it also gets the onMatch and onMismatch options.

      The regular LevelFilter already does it.

      In case you wonder, I try to get a setup where messages below WARN go to stdout and those with WARN and higher to stderr by using to appenders with ThresholdFilters but inverted onMatch/onMismatch settings.

      Attachments

        Activity

          People

            logback-dev Logback dev list
            lathspell Christian Hammers
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: