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

Logging stops when a context is restarted

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.0.1, 1.0.6

    Description

      When the context is restarted, it stops logging.

      We have found that when the Logger is created within the application itself, after stopping and restarting the cotnext it no longer logs. If the loggers are created within a jar that is in the WEB-INF/lib folder, then it continues to log past the context restart.

      We have tried 1.0.1 (what we currently use) and we also tested this with 1.0.6, just in case an update had corrected it.

      We used the SLF4J 1.6.4 with logback 1.0.1 and SLF4J 1.6.6 with logback 1.0.6, but we experienced the same issues across all tests.

      This bug matches the closed (could not reproduce) bug LOGBACK-356 (which was reported against a much older version of logback)

      To reproduce:

      Create a logger in the web app.
      Create a separate logger in a jar in the web apps WEB-INF/lib

      have the main logger write a log statement.
      have the jar logger write a log statement.

      Restart the context

      See logging fail in the webapp logger.
      See logging continue in the jar logger (e.g. spring).

      Attachments

        Activity

          People

            logback-dev Logback dev list
            llowder Lee Lowder
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: