I am developing my own simple logging system, which I'd like to design so it writes the to output stream asyncronously. For that purpose I create processing thread. How am I supposed to properly stop it, when user application finishes executing?
Unfortunatelly SLF4J facade doesn't provide any interface for me to delegate this responsibility to the user.