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

LoggerContext.reset() is not resetting the context name.

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • None
    • None

    Description

      LoggerContext.reset() should execute this.name = null; or this.name = CoreConstants.DEFAULT_CONTEXT_NAME;.

      Right now, an IllegalStateException("Context has been already given a name") is thrown whenever a context with an explicit name is reloaded/refreshed.

      This contradicts the documentation of reset() at http://logback.qos.ch/apidocs/ch/qos/logback/classic/LoggerContext.html#reset%28%29

      Attachments

        Activity

          People

            logback-dev Logback dev list
            jhuxhorn Joern Huxhorn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: