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

@ -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_formatter>(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 &registry::instance()
{
static registry s_instance;

View File

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