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

ShutdownHook requires the class attribute

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.1.3
    • Fix Version/s: None
    • Component/s: logback-site
    • Labels:

      Description

      The configuration documentation is incorrect or unclear that a default shutdown hook would be used if you use the configuration <shutdownHook/>.

      If you don't provide a class like <shutdownHook class="ch.qos.logback.core.hook.DelayingShutdownHook"/> You will receive an error message like the following:

      ERROR in ch.qos.logback.core.joran.action.ShutdownHookAction - Missing class name for shutdown hook. Near [shutdownHook] line xx

      Please either change the documentation to state a class is a required attribute or you change ShutdownHookAction to use a default of no class attribute is given.

        Attachments

          Activity

            People

            • Assignee:
              logback-dev Logback dev list
              Reporter:
              mbwhelan mark whelan
            • Votes:
              5 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: