mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
Update logger.h
This commit is contained in:
parent
dc38b7c3c4
commit
5ba95f6816
@ -329,7 +329,7 @@ protected:
|
|||||||
{
|
{
|
||||||
memory_buf_t buf;
|
memory_buf_t buf;
|
||||||
// little bit faster than fmt::format_to(std::back_inserter(buf), fmt, std::forward<Args>(args)...);
|
// little bit faster than fmt::format_to(std::back_inserter(buf), fmt, std::forward<Args>(args)...);
|
||||||
fmt::detail::vformat_to(buf, fmt::to_string_view(fmt), fmt::make_format_args(args...), {});
|
fmt::detail::vformat_to(buf, fmt::string_view(fmt), fmt::make_format_args(args...), {});
|
||||||
details::log_msg log_msg(loc, name_, lvl, string_view_t(buf.data(), buf.size()));
|
details::log_msg log_msg(loc, name_, lvl, string_view_t(buf.data(), buf.size()));
|
||||||
log_it_(log_msg, log_enabled, traceback_enabled);
|
log_it_(log_msg, log_enabled, traceback_enabled);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user