pub async fn shutdown()Expand description
Shutdown the logger and stop the background worker. This function will drop the sender and close the channel, allowing the background worker to exit. It is important to call this function before the program exits to ensure that all log messages are flushed.