-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Missing "shutdown" in the "spdlog::details::registry" destructor #3109
Comments
It is not safe to call It is well known that after the The phenomenon of threads and mutex crashing when spdlog is used before |
I work on Linux Ubuntu 22.04. In my case :
spdlog is not used at all by the main application |
So why not have a function that cleanup library's resources and call it before the library is unloaded by It is a common design to provide an initialization function and a cleanup function, which are called before and after the library resource is used (e.g., |
CONTEXT:
I have a specific use case :
The simulation is run, then
Each model use its own spdlog multisink logger :
Before a model is unloaded, its logger calls spdlog::drop
BUG:
WORKAROUND FOUND
PERENNIAL SOLUTION
Could you please add a destructor with shutdown in the original spdlog::details::registry?
The text was updated successfully, but these errors were encountered: