mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-15 18:22:07 +08:00
Minor cleanup
This commit is contained in:
parent
d2299fcc31
commit
28af7c211f
@ -37,7 +37,7 @@ public:
|
|||||||
// This make the default API faster, but cannot be used concurrently with set_default_logger().
|
// This make the default API faster, but cannot be used concurrently with set_default_logger().
|
||||||
// e.g do not call set_default_logger() from one thread while calling spdlog::info() from
|
// e.g do not call set_default_logger() from one thread while calling spdlog::info() from
|
||||||
// another.
|
// another.
|
||||||
logger *get_default_raw() const;
|
logger *get_default_raw() const noexcept;
|
||||||
|
|
||||||
// set default logger.
|
// set default logger.
|
||||||
// default logger is stored in default_logger_ (for faster retrieval) and in the loggers_ map.
|
// default logger is stored in default_logger_ (for faster retrieval) and in the loggers_ map.
|
||||||
|
@ -50,7 +50,7 @@ std::shared_ptr<logger> context::default_logger() {
|
|||||||
// To be used directly by the spdlog default api (e.g. spdlog::info)
|
// To be used directly by the spdlog default api (e.g. spdlog::info)
|
||||||
// This make the default API faster, but cannot be used concurrently with set_default_logger().
|
// This make the default API faster, but cannot be used concurrently with set_default_logger().
|
||||||
// e.g do not call set_default_logger() from one thread while calling spdlog::info() from another.
|
// e.g do not call set_default_logger() from one thread while calling spdlog::info() from another.
|
||||||
logger *context::get_default_raw() const { return default_logger_.get(); }
|
logger *context::get_default_raw() const noexcept{ return default_logger_.get(); }
|
||||||
|
|
||||||
// set default logger.
|
// set default logger.
|
||||||
// default logger is stored in default_logger_ (for faster retrieval) and in the loggers_ map.
|
// default logger is stored in default_logger_ (for faster retrieval) and in the loggers_ map.
|
||||||
|
Loading…
Reference in New Issue
Block a user