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
How register work? #3088
Comments
You need to register and unregister loggers to the spdlog registry with
spdlog identifies loggers registered in the registry by name (
No.
Loggers registered in the registry cannot use the same name.
Yes. |
@tt4g Can I use the logger without register it? Then when the object is destroyed, will m_logger be safely destroyed? |
You can use the logger without registering it in the registry.
|
For example I want to create many many logger and bind each to a object instance.
When the object is destroied, will the logger be unregistered?
What about all m_loggers of objects with same name?
What about all m_loggers of objects with different name?
Will spdlog::set_level (set_pattern, set_formatter, set_err_handler) effect m_loggers?
The text was updated successfully, but these errors were encountered: