From 3b4c775b5b7414da232d81bf2f32d59b1b70b875 Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 26 Apr 2024 01:40:26 +0300 Subject: [PATCH] Update comment about set_default_logger --- include/spdlog/details/registry.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/spdlog/details/registry.h b/include/spdlog/details/registry.h index 1e9e6bde7..d21f2b4de 100644 --- a/include/spdlog/details/registry.h +++ b/include/spdlog/details/registry.h @@ -50,8 +50,9 @@ class SPDLOG_API registry { // another. logger *get_default_raw(); - // set default logger. + // set default logger and add it to the registry if not registered already. // default logger is stored in default_logger_ (for faster retrieval) and in the loggers_ map. + // Note: Make sure to unregister it when no longer needed or before calling again with a new logger. void set_default_logger(std::shared_ptr new_default_logger); void set_tp(std::shared_ptr tp);