shutdown

Shuts down the logger by cancelling scheduled tasks and flushing pending entries. Should be called during plugin shutdown.