This repository has been archived by the owner on Mar 20, 2024. It is now read-only.
Solve completeness issue regarding closed contexts or applications exiting #18
Labels
bug
Something isn't working
When a context is closed the current implementation will exit out of all logging without draining the channel first. This can cause logs to be lost because they are not pulled prior to exiting.
Each channel should be monitored using something like
len
of the channel to ensure that all logs are drained prior to exiting the logger. Obviously, this doesn't solve the case where the application is closed, but perhaps an option should be added to monitor for anos
signal and drain remaining logs when that happens.The text was updated successfully, but these errors were encountered: