Add more source_loc overloads in spdlog namespace

This commit is contained in:
Charles Milette 2019-07-24 13:26:42 -04:00
parent e0cf16b7e9
commit 59cbdaaf49
No known key found for this signature in database
GPG Key ID: 1A5AE81377AD973A
1 changed files with 12 additions and 0 deletions

View File

@ -162,6 +162,12 @@ inline void critical(string_view_t fmt, const Args &... 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>
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<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>
inline void log(level::level_enum lvl, wstring_view_t fmt, const Args &... args)
{