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

JaninoEventEvaluator Doesn't support Marker

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 1.5.4
    • None
    • None
    • None

    Description

      I want to filter my log per the expression marker != null && (marker.contains("SYSTEM_OUT") || level==ERROR).

      But recently I upgraded the logback to the latest version and found it doesn't work.

      I checked the document and it says it still supports marker, see https://logback.qos.ch/manual/appenders.html#marker_JaninoEventEvaluator.

      But from the source code I see it has already comment out https://github.com/qos-ch/logback/blob/master/logback-classic/src/main/java/ch/qos/logback/classic/boolex/JaninoEventEvaluator.java#L50.
      I also tried to workaround this by adding two appenders and one for log level filter and another for OnMarkerEvaluator, but the performance decreased significantly and it would be obvious if I have a large set of data that need to be logged.

      Any thoughts on this?

      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: