Hi,
Right I have to say:
import org.apache.logging.log4j.core.LoggerContext;
final LoggerContext context = Configurator.initialize("Name",
aClassLoader, "path/to/config.xml");
try {
...
} finally {
Configurator.shutdown(context);
}
This would be nicer:
try (LoggerContext context = Configurator.initialize("Name",
aClassLoader, "path/to/config.xml")) {
...
}
Thoughts?
Gary
--
E-Mail: [email protected] | [email protected]
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory