Registers receivers to be closed at system shutdown.
Registers receivers to be closed at system shutdown. This uses the Java runtime's addShutdownHook which only executes during certain system shutdown scenarios.
Calling this method multiple times with the same receiver has no effect beyond calling it once.
a set of receivers to attempt to close on normal system shutdown
Registers receivers to be closed when the JVM receives a certain signal.
Registers receivers to be closed when the JVM receives a certain signal. This is intended for integration with tools like logrotate that are capable of sending signals during rotation to tell the logging process to close and reopen its log files to prevent the process from hanging on to an open file handle and therefore continuing to log to a log file that has been rotated out.
Calling this method multiple times with the same receiver and signal combination has no effect beyond calling it once with that combination. All receivers passed to calls for the same signal are accumulated and closed when that signal is received. There is no way to retract the registration.
the signal to listen for (I recommend "HUP")
the receivers to close when the signal is received
Provides methods for telling timber how to manage your Receivers.