mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 10:01:33 +08:00
Changed function name to level::from_str
This commit is contained in:
parent
a2653d409f
commit
ad221b0990
@ -103,7 +103,7 @@ inline const char *to_short_str(spdlog::level::level_enum l)
|
||||
{
|
||||
return short_level_names[l];
|
||||
}
|
||||
inline spdlog::level::level_enum to_level_enum(const std::string &name)
|
||||
inline spdlog::level::level_enum from_str(const std::string &name)
|
||||
{
|
||||
static std::unordered_map<std::string, level_enum> name_to_level = // map string->level
|
||||
{{level_names[0], level::trace}, // trace
|
||||
|
Loading…
Reference in New Issue
Block a user