mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 01:29:35 +08:00
fixed tests and renamed to_short_str
This commit is contained in:
@@ -99,7 +99,7 @@ inline const char *to_c_str(spdlog::level::level_enum l)
|
||||
return level_names[l];
|
||||
}
|
||||
|
||||
inline const char *to_short_str(spdlog::level::level_enum l)
|
||||
inline const char *to_short_c_str(spdlog::level::level_enum l)
|
||||
{
|
||||
return short_level_names[l];
|
||||
}
|
||||
|
@@ -56,7 +56,7 @@ 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_c_str(level::to_short_str(msg.level), dest);
|
||||
fmt_helper::append_c_str(level::to_short_c_str(msg.level), dest);
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user