mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
Update pattern_formatter.cpp
This commit is contained in:
parent
7ac740a029
commit
6eef69e4ac
@ -116,7 +116,7 @@ public:
|
||||
: flag_formatter(padinfo) {}
|
||||
|
||||
void format(const details::log_msg &msg, const std::tm &, memory_buf_t &dest) override {
|
||||
string_view_t level_name{to_short_c_str(msg.log_level)};
|
||||
auto level_name = to_short_string_view(msg.log_level)};
|
||||
ScopedPadder p(level_name.size(), padinfo_, dest);
|
||||
fmt_helper::append_string_view(level_name, dest);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user