Back

shutdown-appenders! (clj)

(source)

function

(shutdown-appenders!) (shutdown-appenders! config)
Alpha, subject to change. Iterates through all appenders in config (enabled or not), and calls (:shutdown-fn appender) whenever that fn exists. This signals to these appenders that they should immediately close/release any resources that they may have open/acquired, and permanently noop on future logging requests. Returns the set of appender-ids that had a shutdown-fn called. This fn is called automatically on JVM shutdown, but can also be called manually.

Examples