The following functions should not be called concurrently from multiple threads on the same logger object:
set_error_handler(log_err_handler);
logger::sinks()
logger->sinks().push_back(new_sink);
Note: This restriction applies to all kind of loggers ("_mt" or "_st").
To create thread safe loggers, use the _mt factory functions.
For example:
auto logger = spdlog::basic_logger_mt(...);
To create single threaded loggers, use the _st factory functions.
auto logger = spdlog::basic_logger_st(...);
_mt
daily_file_sink_mt
_st
daily_file_sink_st
There was an error while loading. Please reload this page.