mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-26 07:29:03 +08:00
wip
This commit is contained in:
parent
010b0e1d75
commit
15a9427112
@ -6,8 +6,17 @@
|
|||||||
#include <spdlog/details/os.h>
|
#include <spdlog/details/os.h>
|
||||||
|
|
||||||
//
|
//
|
||||||
// Init levels from argv SPDLOG_LEVEL
|
// Init log levels using each argv entry that starts with "SPDLOG_LEVEL="
|
||||||
// Example: my_program.exe "SPDLOG_LEVEL=trace"
|
//
|
||||||
|
// set all loggers to debug level:
|
||||||
|
// example.exe "SPDLOG_LEVEL=debug"
|
||||||
|
|
||||||
|
// set logger1 to trace level
|
||||||
|
// example.exe "SPDLOG_LEVEL=logger1=trace"
|
||||||
|
|
||||||
|
// turn off all logging except for logger1 and logger2:
|
||||||
|
// example.exe "SPDLOG_LEVEL=off,logger1=debug,logger2=info"
|
||||||
|
|
||||||
|
|
||||||
namespace spdlog {
|
namespace spdlog {
|
||||||
namespace cfg {
|
namespace cfg {
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
// turn off all logging except for logger1:
|
// turn off all logging except for logger1:
|
||||||
// export SPDLOG_LEVEL="off,logger1=debug"
|
// export SPDLOG_LEVEL="off,logger1=debug"
|
||||||
//
|
//
|
||||||
|
|
||||||
// turn off all logging except for logger1 and logger2:
|
// turn off all logging except for logger1 and logger2:
|
||||||
// export SPDLOG_LEVEL="off,logger1=debug,logger2=info"
|
// export SPDLOG_LEVEL="off,logger1=debug,logger2=info"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user