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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.8
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: