mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 09:59:33 +08:00
Update logger.h
This commit is contained in:
@@ -266,7 +266,7 @@ public:
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// return true logging is enabled for the given level.
|
// return true if logging is enabled for the given level.
|
||||||
[[nodiscard]] bool should_log(level::level_enum msg_level) const
|
[[nodiscard]] bool should_log(level::level_enum msg_level) const
|
||||||
{
|
{
|
||||||
return msg_level >= level_.load(std::memory_order_relaxed);
|
return msg_level >= level_.load(std::memory_order_relaxed);
|
||||||
@@ -361,7 +361,6 @@ protected:
|
|||||||
void err_handler_(const std::string &msg);
|
void err_handler_(const std::string &msg);
|
||||||
};
|
};
|
||||||
|
|
||||||
void swap(logger &a, logger &b);
|
|
||||||
|
|
||||||
} // namespace spdlog
|
} // namespace spdlog
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user