Update README.md

pull/3437/head
Alexander 2 months ago committed by GitHub
parent 5021d248d0
commit 06e2e4acad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -246,8 +246,8 @@ void multi_sink_example()
```c++ ```c++
// Creation of loggers. Registration of loggers. // Creation of loggers. Registration of loggers.
// Setting default logger. Setting global level to all registered loggers. // Setting a default logger. Setting a global level to all registered loggers.
void multi_sink_example() void multi_loggers_example()
{ {
auto file_sink = std::make_shared<spdlog::sinks::basic_file_sink_mt>("logs/filesink.txt", true); auto file_sink = std::make_shared<spdlog::sinks::basic_file_sink_mt>("logs/filesink.txt", true);
file_sink->set_level(spdlog::level::warning); file_sink->set_level(spdlog::level::warning);

Loading…
Cancel
Save