From 59cbdaaf4987ff55f65debc407187dca039a677e Mon Sep 17 00:00:00 2001
From: Charles Milette <me@charlesmilette.net>
Date: Wed, 24 Jul 2019 13:26:42 -0400
Subject: [PATCH] Add more source_loc overloads in spdlog namespace

---
 include/spdlog/spdlog.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

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<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)
 {