Hi. Here's a simple enough project.
Uncomment these lines and use shutdown hook. The log will be cleared.
It seems that the logging is booted for twice. Because I use append="false" in log4j2.xml.
Is it intended? Or am I miss something?
// synchronized (kernel) {
// kernel.wait();
// }