rename function

This commit is contained in:
gabime
2019-12-13 16:00:55 +02:00
parent d70d5aa9d8
commit 13ebfc0779
3 changed files with 8 additions and 6 deletions

View File

@@ -79,7 +79,7 @@ SPDLOG_INLINE std::unordered_map<std::string, std::string> extract_key_vals_(con
return rv;
}
inline details::registry::logger_levels levels_from_string_(const std::string& input)
inline details::registry::logger_levels extract_levels_(const std::string& input)
{
auto key_vals = extract_key_vals_(input);
details::registry::logger_levels rv;
@@ -110,7 +110,7 @@ inline details::registry::logger_levels levels_from_string_(const std::string& i
SPDLOG_INLINE void load_levels()
{
auto levels = levels_from_string_(details::os::getenv("SPDLOG_LEVEL"));
auto levels = extract_levels_(details::os::getenv("SPDLOG_LEVEL"));
spdlog::details::registry::instance().set_levels(levels);
}

View File

@@ -26,7 +26,7 @@
namespace spdlog {
namespace env {
void load_levels();
}
} // namespace env
} // namespace spdlog
#ifdef SPDLOG_HEADER_ONLY