diff --git a/include/spdlog/details/logger_impl.h b/include/spdlog/details/logger_impl.h index 11cbc7e4..516e0a50 100644 --- a/include/spdlog/details/logger_impl.h +++ b/include/spdlog/details/logger_impl.h @@ -217,11 +217,11 @@ inline void spdlog::logger::log(level::level_enum lvl, const wchar_t* msg) } template -inline void spdlog::logger::log(level::level_enum lvl, const wchar_t* fmt, const Args&... args) +inline void spdlog::logger::log(level::level_enum lvl, const wchar_t* fmtstr, const Args&... args) { fmt::WMemoryWriter wWriter; - wWriter.write(fmt, args...); + wWriter.write(fmtstr, args...); log(lvl, wWriter.c_str()); }