def shutdown_async_logger(immediate=False) -> None:
source code
Gracefully shutdown the async logger, ensuring all pending logs are flushed.