mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-25 06:59:11 +08:00
wip
This commit is contained in:
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…
Reference in New Issue
Block a user