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)
_______________________________________________
logback-dev mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/logback-dev