Fixed pattern formatter

This commit is contained in:
gabime 2018-10-21 23:48:11 +03:00
parent 1bdd556d3b
commit 871cca2401

View File

@ -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);
}
};