Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gabime/spdlog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Milette <me@charlesmilette.net>2019-07-24 20:26:42 +0300
committerCharles Milette <me@charlesmilette.net>2019-07-24 20:26:42 +0300
commit59cbdaaf4987ff55f65debc407187dca039a677e (patch)
tree4b01fcff53eebb97079abd23c5957ff9faf1374f /include/spdlog/spdlog.h
parente0cf16b7e9ad4f885578611c4f1b5b2f239065ac (diff)
Add more source_loc overloads in spdlog namespace
Diffstat (limited to 'include/spdlog/spdlog.h')
-rw-r--r--include/spdlog/spdlog.h12
1 files changed, 12 insertions, 0 deletions
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
@@ -163,6 +163,12 @@ inline void critical(string_view_t fmt, const Args &... 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)
{
default_logger_raw()->log(lvl, msg);
@@ -206,6 +212,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)
{
default_logger_raw()->log(lvl, fmt, args...);