diff --git a/include/spdlog/cfg/env-inl.h b/include/spdlog/cfg/env-inl.h index 136eabd9..6b76b214 100644 --- a/include/spdlog/cfg/env-inl.h +++ b/include/spdlog/cfg/env-inl.h @@ -18,7 +18,6 @@ namespace spdlog { namespace env { - using name_val_pair = std::pair; // inplace convert to lowercase diff --git a/include/spdlog/details/registry-inl.h b/include/spdlog/details/registry-inl.h index 5af3d4d4..76355f2a 100644 --- a/include/spdlog/details/registry-inl.h +++ b/include/spdlog/details/registry-inl.h @@ -279,12 +279,10 @@ SPDLOG_INLINE void registry::set_configs(logger_cfgs configs) auto &pattern = cfg_it->second.pattern; logger->set_formatter(details::make_unique(pattern)); } - else //not found in cfgs - give it default settings + else // not found in cfgs - give it default settings { logger } - - } for (const auto &logger_cfg : configs) @@ -293,19 +291,14 @@ SPDLOG_INLINE void registry::set_configs(logger_cfgs configs) auto level = level::from_str(logger_cfg.second.level_name); auto &pattern = logger_cfg.second.pattern; - if (auto logger = this->get(logger_name)) { logger->set_level(level); logger->set_pattern(pattern); } - } - } - - SPDLOG_INLINE registry ®istry::instance() { static registry s_instance; diff --git a/include/spdlog/details/registry.h b/include/spdlog/details/registry.h index ec2e8a0f..43cc69ee 100644 --- a/include/spdlog/details/registry.h +++ b/include/spdlog/details/registry.h @@ -24,9 +24,6 @@ namespace details { class thread_pool; class periodic_worker; - - - class registry { public: