|
|
@ -160,9 +160,8 @@ void async_example()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// create logger with 2 targets with different log levels and formats
|
|
|
|
// create logger with 2 targets with different log levels and formats.
|
|
|
|
// the console will show only warnings or errors, while the file will log all
|
|
|
|
// the console will show only warnings or errors, while the file will log all.
|
|
|
|
|
|
|
|
|
|
|
|
void multi_sink_example()
|
|
|
|
void multi_sink_example()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
auto console_sink = std::make_shared<spdlog::sinks::stdout_color_sink_mt>();
|
|
|
|
auto console_sink = std::make_shared<spdlog::sinks::stdout_color_sink_mt>();
|
|
|
|