mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-28 17:19:34 +08:00
wip
This commit is contained in:
@@ -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_);
|
||||
|
Reference in New Issue
Block a user