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

Filters shuld be able to lower level of LoggingEvents

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 1.1.3
    • logback-classic

    Description

      I would like to create a filter that downgrades log severity e.g. from ERROR to INFO under some circumstances. I can't do this because the setLevel method currently throws an exception if the level has already been set. Can those lines be removed?
      Thank you

      Attachments

        Activity

          People

            logback-dev Logback dev list
            ago agostino cavarero
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: