|
|
|
@ -77,8 +77,7 @@ public:
|
|
|
|
|
template <typename... Args>
|
|
|
|
|
void log(level lvl, format_string_t<Args...> fmt, Args &&...args) {
|
|
|
|
|
if (should_log(lvl)) {
|
|
|
|
|
constexpr source_loc empty_loc{};
|
|
|
|
|
log_with_format_(empty_loc, lvl, details::to_string_view(fmt),
|
|
|
|
|
log_with_format_(source_loc{}, lvl, details::to_string_view(fmt),
|
|
|
|
|
std::forward<Args>(args)...);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -99,8 +98,7 @@ public:
|
|
|
|
|
|
|
|
|
|
void log(level lvl, string_view_t msg) {
|
|
|
|
|
if (should_log(lvl)) {
|
|
|
|
|
constexpr source_loc empty_loc{};
|
|
|
|
|
sink_it_(details::log_msg(empty_loc, name_, lvl, msg));
|
|
|
|
|
sink_it_(details::log_msg(source_loc{}, name_, lvl, msg));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|