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

OnConsoleStatusListener initialized with system property (logback.statusListenerClass) is never started

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.0.8
    • None
    • None
    • None

    Description

      I tried use OnConsoleStatusListener initialized as it is described in manual (using property logback.statusListenerClass). No expected output appeared. When I was using xml element everthing worked fine. I have looked inside source code to check the difference between initialization in those two cases (property and xml). I found out that for 'property's' way start() is never called and thus status events are never printed out.

      You could take a look at ch.qos.logback.classic.util.StatusListenerConfigHelper. Created listener has not Context set and isn't started so it won't print any output during program execution.

      Sorry for my bad language.

      Best Regards,
      Adam

      Attachments

        Activity

          People

            logback-dev Logback dev list
            forrestas Adam Sokowicz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: