@@ -192,22 +192,22 @@ class LoggerMixin {
192
192
void trace (std::string_view msg) const { report<LogLevel::kTrace >(msg); }
193
193
194
194
template <typename ...T> constexpr void critical (fmt::format_string<T...> fmt, T&&... args) const {
195
- log <LogLevel::kCritical >(fmt, std::forward<decltype (args)>(args)...);
195
+ report_fmt <LogLevel::kCritical >(fmt, std::forward<decltype (args)>(args)...);
196
196
}
197
197
template <typename ...T> constexpr void error (fmt::format_string<T...> fmt, T&&... args) const {
198
- log <LogLevel::kError >(fmt, std::forward<decltype (args)>(args)...);
198
+ report_fmt <LogLevel::kError >(fmt, std::forward<decltype (args)>(args)...);
199
199
}
200
200
template <typename ...T> constexpr void warning (fmt::format_string<T...> fmt, T&&... args) const {
201
- log <LogLevel::kWarning >(fmt, std::forward<decltype (args)>(args)...);
201
+ report_fmt <LogLevel::kWarning >(fmt, std::forward<decltype (args)>(args)...);
202
202
}
203
203
template <typename ...T> constexpr void info (fmt::format_string<T...> fmt, T&&... args) const {
204
- log <LogLevel::kInfo >(fmt, std::forward<decltype (args)>(args)...);
204
+ report_fmt <LogLevel::kInfo >(fmt, std::forward<decltype (args)>(args)...);
205
205
}
206
206
template <typename ...T> constexpr void debug (fmt::format_string<T...> fmt, T&&... args) const {
207
- log <LogLevel::kDebug >(fmt, std::forward<decltype (args)>(args)...);
207
+ report_fmt <LogLevel::kDebug >(fmt, std::forward<decltype (args)>(args)...);
208
208
}
209
209
template <typename ...T> constexpr void trace (fmt::format_string<T...> fmt, T&&... args) const {
210
- log <LogLevel::kTrace >(fmt, std::forward<decltype (args)>(args)...);
210
+ report_fmt <LogLevel::kTrace >(fmt, std::forward<decltype (args)>(args)...);
211
211
}
212
212
213
213
bool aboveCriticalThreshold () const { return m_level >= LogLevel::kCritical ; }
@@ -232,7 +232,7 @@ class LoggerMixin {
232
232
}
233
233
234
234
template <LogLevel l, typename ...T>
235
- constexpr void log (fmt::format_string<T...> fmt, T&&... args) const {
235
+ constexpr void report_fmt (fmt::format_string<T...> fmt, T&&... args) const {
236
236
if (l >= m_level) {
237
237
m_logger.report (l, m_caller, fmt::format (fmt, std::forward<decltype (args)>(args)...));
238
238
}
0 commit comments