mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
Fixed pattern formatter
This commit is contained in:
parent
1bdd556d3b
commit
871cca2401
@ -32,13 +32,12 @@ public:
|
||||
};
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
// name & level pattern appenders
|
||||
// name & level pattern appender
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
class name_formatter : public flag_formatter
|
||||
{
|
||||
void format(const details::log_msg &msg, const std::tm &, fmt::memory_buffer &dest) override
|
||||
{
|
||||
// fmt_helper::append_str(*msg.logger_name, dest);
|
||||
fmt_helper::append_string_view(string_view_type(*msg.logger_name), dest);
|
||||
}
|
||||
};
|
||||
@ -48,8 +47,6 @@ class level_formatter : public flag_formatter
|
||||
{
|
||||
void format(const details::log_msg &msg, const std::tm &, fmt::memory_buffer &dest) override
|
||||
{
|
||||
// fmt_helper::append_string_view(level::to_c_str(msg.level), dest);
|
||||
spdlog::string_view_type t("SSSSSSS");
|
||||
fmt_helper::append_string_view(level::to_c_str(msg.level), dest);
|
||||
}
|
||||
};
|
||||
@ -59,7 +56,6 @@ class short_level_formatter : public flag_formatter
|
||||
{
|
||||
void format(const details::log_msg &msg, const std::tm &, fmt::memory_buffer &dest) override
|
||||
{
|
||||
// fmt_helper::append_string_view(level::to_short_c_str(msg.level), dest);
|
||||
fmt_helper::append_string_view(level::to_short_c_str(msg.level), dest);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user