Skip to content

0.9.28 Added option to start internal threads as daemons

Compare
Choose a tag to compare
@tkowalcz tkowalcz released this 26 Feb 19:41
· 14 commits to master since this release

Both Log4j2 and Logback now support option useDaemonThreads. When enabled Tjahzi will start its two internal threads (worker and log shipper) as daemon threads. This option is disabled by default. JVM would not terminate as long as there are non daemon threads. The purpose of this option is to allow applications that do not explicitly close the logging system to still exit cleanly.

Enabling this option is not recommended as it will cause non flushed messages to be lost during shutdown.