-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Default logger
Gabi Melman edited this page Jan 10, 2019
·
1 revision
For convenience, spdlog creates a default global logger (to stdout, colored and multithreaded).
It can be used easily by calling spdlog::info(..), spdlog::debug(..), etc
directly.
It's instance can be replaced to any other logger (shared_ptr):
spdlog::set_default_logger(some_other_logger);
spdlog::info("Use the new default logger");