mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-27 16:09:05 +08:00
Merge pull request #524 from 2Park/master
Fix SPDLOG_WCHAR_TO_UTF8_SUPPORT wchar_t logging
This commit is contained in:
commit
cd6a8c9a4c
@ -326,6 +326,7 @@ inline void spdlog::logger::critical_if(const bool flag, const T& msg)
|
|||||||
|
|
||||||
#ifdef SPDLOG_WCHAR_TO_UTF8_SUPPORT
|
#ifdef SPDLOG_WCHAR_TO_UTF8_SUPPORT
|
||||||
#include <codecvt>
|
#include <codecvt>
|
||||||
|
#include <locale>
|
||||||
|
|
||||||
template <typename... Args>
|
template <typename... Args>
|
||||||
inline void spdlog::logger::log(level::level_enum lvl, const wchar_t* msg)
|
inline void spdlog::logger::log(level::level_enum lvl, const wchar_t* msg)
|
||||||
@ -399,7 +400,7 @@ inline void spdlog::logger::log_if(const bool flag, level::level_enum lvl, const
|
|||||||
{
|
{
|
||||||
if (flag)
|
if (flag)
|
||||||
{
|
{
|
||||||
log(lvl, fmt, args);
|
log(lvl, fmt, args...);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user