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

Support for Turbofilters in LoggingEventBuilder

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 1.3.12, 1.5.7
    • None
    • None
    • None

    Description

      Piotr P. Karwasz created this issue on 25/Jan/23 9:02 PM

      These two calls should always have the same result:

        logger.info(marker, "Hello Logback!");
        logger.atInfo().addMarker(marker).log("Hello Logback!");
        

      Messages at a DEBUG level are treated differently by the two calls if turbo filters are involved:

      • the first call passes all the parameters to the turbo filter. If the filter returns ACCEPT the message is logged,
      • the second call only checks the level of the message (DEBUG) and discards the message.

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            ceki Ceki Gülcü
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: