From 010b0e1d75c867bac2a978cef5b5d9c7547d996c Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 21 Dec 2019 17:58:31 +0200 Subject: [PATCH] wip --- include/spdlog/cfg/helpers.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/include/spdlog/cfg/helpers.h b/include/spdlog/cfg/helpers.h index 23c2615e..7976226f 100644 --- a/include/spdlog/cfg/helpers.h +++ b/include/spdlog/cfg/helpers.h @@ -4,15 +4,22 @@ #pragma once #include -#include -// -// Init levels from given string -// + + namespace spdlog { namespace cfg { 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); }