Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to tell if the logger is still active? #501

Open
ghost opened this issue Jul 13, 2023 · 2 comments
Open

Is there a way to tell if the logger is still active? #501

ghost opened this issue Jul 13, 2023 · 2 comments

Comments

@ghost
Copy link

ghost commented Jul 13, 2023

I'm looking for a way to detect if the logger has not been shutdown or is shutdown to avoid stream closed exceptions. I'm using Tiny log 2.

if(!Logger.isShutdown()){
   // Continue to log
   Logger...
}
@ghost ghost added the question label Jul 13, 2023
@pmwmedia
Copy link
Member

Unfortunately, there isn't yet any publicly available API to detect whether the logging framework has been shut down. However, it would be possible to implement this.

@ghost
Copy link
Author

ghost commented Jul 15, 2023

Thanks ... I appreciate the reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant