This commit is contained in:
gabime 2019-12-21 17:58:31 +02:00
parent cd5ddca00d
commit 010b0e1d75

View File

@ -4,15 +4,22 @@
#pragma once #pragma once
#include <spdlog/cfg/log_levels.h> #include <spdlog/cfg/log_levels.h>
#include <string>
//
// Init levels from given string
//
namespace spdlog { namespace spdlog {
namespace cfg { namespace cfg {
namespace helpers { namespace helpers {
//
// Init levels from given string
//
// Examples:
//
// set global level to debug: "debug"
// turn off all logging except for logger1: "off,logger1=debug"
// turn off all logging except for logger1 and logger2: "off,logger1=debug,logger2=info"
//
log_levels extract_levels(const std::string &txt); log_levels extract_levels(const std::string &txt);
} }