diff --git a/include/spdlog/spdlog.h b/include/spdlog/spdlog.h index 4abb3098..b4996688 100644 --- a/include/spdlog/spdlog.h +++ b/include/spdlog/spdlog.h @@ -162,6 +162,12 @@ inline void critical(string_view_t fmt, const Args &... args) default_logger_raw()->critical(fmt, args...); } +template +inline void log(source_loc source, level::level_enum lvl, const T &msg) +{ + default_logger_raw()->log(source, lvl, msg); +} + template inline void log(level::level_enum lvl, const T &msg) { @@ -205,6 +211,12 @@ inline void critical(const T &msg) } #ifdef SPDLOG_WCHAR_TO_UTF8_SUPPORT +template +inline void log(source_loc source, level::level_enum lvl, wstring_view_t fmt, const Args &... args) +{ + default_logger_raw()->log(source, lvl, fmt, args...); +} + template inline void log(level::level_enum lvl, wstring_view_t fmt, const Args &... args) {