Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-6355

improve usage for "log collector" + "mail alerter" usecases

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • decanter-2.2.0
    • None
    • decanter
    • None

    Description

      If you would like to be informed per mail about special log events (e.g. log level warn) the current implementation does not work as (perhaps) expected.

      Assume you would like to be informed about every log message of level WARN.

      The current implementation will notify you about the first log message of level WARN and the next alert that is triggered is for a log message not using the WARN level.

      I would like to be informed about every WARN log message and not about any other (so not loosing multiple WARN messages that are followed immediately and not informed about a log message that is not WARN).

      Another improvement would about the combination of multiple patterns.

      E.g. keep me informed about

      type = log

      priority = WARN | ERROR

      not ( loc.class = Foo.class & loc.method = magic)

       

      Perhaps we could reuse https://osgi.org/javadoc/r2/org/osgi/framework/Filter.html

      log.warn.filter = "(&((|(priority=WARN)(priority=ERROR))(loc.class=Foo.class)(loc.method=magic)))"

      (do not assume the filter above is correct)

       

      Perhaps we could already reuse the current implementation and its match method.

      Just need to think about substring matching...

      Attachments

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              maggu2810 Markus Rathgeb
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: