mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-26 10:31:34 +08:00
wip
This commit is contained in:
parent
cd5ddca00d
commit
010b0e1d75
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user