|
|
|
@ -103,7 +103,7 @@ public:
|
|
|
|
|
|
|
|
|
|
void log(log_clock::time_point log_time, source_loc loc, level::level_enum lvl, string_view_t msg)
|
|
|
|
|
{
|
|
|
|
|
if(should_log(lvl))
|
|
|
|
|
if (should_log(lvl))
|
|
|
|
|
{
|
|
|
|
|
sink_it_(details::log_msg(log_time, loc, name_, lvl, msg));
|
|
|
|
|
}
|
|
|
|
@ -111,7 +111,7 @@ public:
|
|
|
|
|
|
|
|
|
|
void log(source_loc loc, level::level_enum lvl, string_view_t msg)
|
|
|
|
|
{
|
|
|
|
|
if(should_log(lvl))
|
|
|
|
|
if (should_log(lvl))
|
|
|
|
|
{
|
|
|
|
|
sink_it_(details::log_msg(loc, name_, lvl, msg));
|
|
|
|
|
}
|
|
|
|
@ -195,8 +195,7 @@ public:
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// return true 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);
|
|
|
|
|
}
|
|
|
|
|