pull/1463/head
gabime 6 years ago
parent 5d4e6f17ee
commit cd8d7e6de9

@ -14,6 +14,7 @@
#include <string>
#include <utility>
#include <sstream>
#include <cassert>
namespace spdlog {
namespace env {
@ -96,6 +97,7 @@ inline details::registry::logger_cfgs from_env_()
for (auto &name_level : levels)
{
auto &logger_name = name_level.first;
assert(!logger_name.empty());
auto level_name = to_lower_(name_level.second);
details::registry::logger_cfg cfg;
cfg.level_name = level_name;

@ -260,6 +260,7 @@ SPDLOG_INLINE void registry::set_automatic_registration(bool automatic_registrat
automatic_registration_ = automatic_registration;
}
SPDLOG_INLINE void registry::set_configs(logger_cfgs configs)
{
std::lock_guard<std::mutex> lock(logger_map_mutex_);

Loading…
Cancel
Save