Replies: 1 comment
-
Yes. The async-logger's logging API is thread-safe. However, remember to use thread-safe sinks (the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
one thing that is not clear to me is if async loggers are thread safe.
I'm constructing a logger in this way:
auto logger = std::make_shared<spdlog::async_logger>(logger_name, sinks.begin(), sinks.end(), spdlog::thread_pool(), spdlog::async_overflow_policy::block);
Can I use the same logger in different threads?
Beta Was this translation helpful? Give feedback.
All reactions