Add more source_loc overloads in spdlog namespace

parent e0cf16b7
...@@ -162,6 +162,12 @@ inline void critical(string_view_t fmt, const Args &... args) ...@@ -162,6 +162,12 @@ inline void critical(string_view_t fmt, const Args &... args)
default_logger_raw()->critical(fmt, args...); default_logger_raw()->critical(fmt, args...);
} }
template<typename T>
inline void log(source_loc source, level::level_enum lvl, const T &msg)
{
default_logger_raw()->log(source, lvl, msg);
}
template<typename T> template<typename T>
inline void log(level::level_enum lvl, const T &msg) inline void log(level::level_enum lvl, const T &msg)
{ {
...@@ -205,6 +211,12 @@ inline void critical(const T &msg) ...@@ -205,6 +211,12 @@ inline void critical(const T &msg)
} }
#ifdef SPDLOG_WCHAR_TO_UTF8_SUPPORT #ifdef SPDLOG_WCHAR_TO_UTF8_SUPPORT
template<typename... Args>
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<typename... Args> template<typename... Args>
inline void log(level::level_enum lvl, wstring_view_t fmt, const Args &... args) inline void log(level::level_enum lvl, wstring_view_t fmt, const Args &... args)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment