Commit ad221b09 authored by gabime's avatar gabime

Changed function name to level::from_str

parent a2653d40
...@@ -103,7 +103,7 @@ inline const char *to_short_str(spdlog::level::level_enum l) ...@@ -103,7 +103,7 @@ inline const char *to_short_str(spdlog::level::level_enum l)
{ {
return short_level_names[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 static std::unordered_map<std::string, level_enum> name_to_level = // map string->level
{{level_names[0], level::trace}, // trace {{level_names[0], level::trace}, // trace
......
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