Skip to content

Commit

Permalink
Update comment about set_default_logger
Browse files Browse the repository at this point in the history
  • Loading branch information
gabime committed Apr 25, 2024
1 parent 3403f27 commit 3b4c775
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/spdlog/details/registry.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<logger> new_default_logger);

void set_tp(std::shared_ptr<thread_pool> tp);
Expand Down

0 comments on commit 3b4c775

Please sign in to comment.