This commit is contained in:
gabime 2019-12-13 00:14:33 +02:00
parent 4fa463dff6
commit dac61d4e9c
3 changed files with 1 additions and 12 deletions

View File

@ -18,7 +18,6 @@
namespace spdlog {
namespace env {
using name_val_pair = std::pair<std::string, std::string>;
// inplace convert to lowercase

View File

@ -283,8 +283,6 @@ SPDLOG_INLINE void registry::set_configs(logger_cfgs configs)
{
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 &registry::instance()
{
static registry s_instance;

View File

@ -24,9 +24,6 @@ namespace details {
class thread_pool;
class periodic_worker;
class registry
{
public: