It appears version 2.8 is close to being released, will it be possible to
get the RollingFileManager threads out of the thread group and join();
them, like I had tried before? 2.7 uses thread groups as well in its
factory, yet I don't see the RollingFileManager threads during shutdown.
Anyway,
Hi all, thanks for all the replies and details. I looked into the source
and it would seem that for a shutdown timeout of 0, the executor service
does not wait for all threads to complete, because it's missing the
awaitTermination(); call:
The problem with Log4j 2.7 is that it uses a pool of non-daemon threads for
the RollingFileManager tasks. This will needlessly block application
shutdown when the application exit by returning from the main method (and
not use System.exit()). If you use System.exit(), you will not experience
this