Uploaded image for project: 'AMQ Streams'
  1. AMQ Streams
  2. ENTMQST-2906

Filtering logging per Kafka CR

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Minor Minor
    • 1.8.0.GA
    • None
    • None
    • None

      It would be really useful to be able to selectively filter logging so that we can get more info about a particular cluster (or more generally a particular CR), and carry on logging the rest normally. I think this can be done using log4j2 Markers. Specifically I think each namespace would correspond to a Marker, and each CR in that namespace a child Marker (or maybe a single ns/name marker), and we could store a Marker in a Reconciliation, which we pass around widely already for logging purposes. Log4j2 can filter using markers.

      Note: we can't use the DynamicThresholdFilter filtering which uses a ThreadContext-bound map because Vertx means that we jump around between threads all the time.

       

      Started by #4653

              morsak Maros Orsak
              sknot@redhat.com Stanislav Knot (Inactive)
              Maros Orsak Maros Orsak
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: