[logback-dev] [JIRA] (LOGBACK-1329) ShutdownHook code inconsist with documentation

QOS.CH (JIRA) noreply-jira at qos.ch
Fri Jul 14 13:04:00 CEST 2017


Constantine created LOGBACK-1329:
------------------------------------

             Summary: ShutdownHook code inconsist with documentation
                 Key: LOGBACK-1329
                 URL: https://jira.qos.ch/browse/LOGBACK-1329
             Project: logback
          Issue Type: Bug
          Components: logback-core
    Affects Versions: 1.2.3
         Environment: Not relevant

 
            Reporter: Constantine
            Assignee: Logback dev list
            Priority: Minor


In ch.qos.logback.core.joran.action.ShutdownHookAction classname is mandatory
{code:java}
String className = attributes.getValue(CLASS_ATTRIBUTE);
if (OptionHelper.isEmpty(className)) {
    addError("Missing class name for shutdown hook. Near [" + name + "] line " + getLineNumber(ic));
    inError = true;
    return;
}
{code}
But on page [https://logback.qos.ch/manual/configuration.html]
{code:java}
<configuration debug="true">
   <!-- in the absence of the class attribute, assume 
   ch.qos.logback.core.hook.DelayingShutdownHook -->
   <shutdownHook/>
  .... 
</configuration>
{code}



--
This message was sent by Atlassian JIRA
(v7.3.1#73012)


More information about the logback-dev mailing list