Commit 871cca24 authored by gabime's avatar gabime

Fixed pattern formatter

parent 1bdd556d
......@@ -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);
}
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment