mirror of
https://github.com/gabime/spdlog.git
synced 2025-02-03 19:19:15 +08:00
Merge branch 'static-lib' of https://github.com/gabime/spdlog into static-lib
This commit is contained in:
commit
1b0752b0a9
@ -164,10 +164,9 @@ public:
|
|||||||
}
|
}
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
using details::fmt_helper::to_string_view;
|
|
||||||
fmt::memory_buffer buf;
|
fmt::memory_buffer buf;
|
||||||
fmt::format_to(buf, "{}", msg);
|
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);
|
sink_it_(log_msg);
|
||||||
}
|
}
|
||||||
catch (const std::exception &ex)
|
catch (const std::exception &ex)
|
||||||
|
Loading…
Reference in New Issue
Block a user