From 6bec53dcd2fd49edcf159661701fbe71f226e924 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Sat, 6 Apr 2019 02:14:08 +0300 Subject: [PATCH] Update logger.h --- include/spdlog/logger.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h index 6b6c736b..228c857c 100644 --- a/include/spdlog/logger.h +++ b/include/spdlog/logger.h @@ -164,10 +164,9 @@ public: } try { - using details::fmt_helper::to_string_view; fmt::memory_buffer buf; fmt::format_to(buf, "{}", msg); - details::log_msg log_msg(loc, &name_, lvl, to_string_view(buf)); + details::log_msg log_msg(loc, &name_, lvl, lvl, string_view_t(buf.data(), buf.size())); sink_it_(log_msg); } catch (const std::exception &ex)