Non thread safe functions
The following functions should not be called concurrently from multiple threads on the same logger object:
logger::sinks()- returns a reference to a non thread safe vector, so don't modify it concurrently (e.g.
Note: This restriction applies to all kind of loggers ("_mt" or "_st").
To create thread safe loggers, use the _mt factory functions.
auto logger = spdlog::basic_logger_mt(...);
To create single threaded loggers, use the _st factory functions.
auto logger = spdlog::basic_logger_st(...);
- Thread safe sinks: sinks ending with
- Non thread safe sinks: sinks ending with