mirror of
https://github.com/gabime/spdlog.git
synced 2026-06-29 11:17:26 +00:00
2
Default logger
Gabi Melman edited this page 2025-10-15 09:55:06 +03:00
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.
Its instance can be replaced to any other logger (shared_ptr):
spdlog::set_default_logger(some_other_logger);
spdlog::info("Use the new default logger");