From b93e96ebf7aca092abf576f6e32bc55dff695d93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjell=20Hedstr=C3=B6m=20=3A=20Available=20for=20new=20Engi?= =?UTF-8?q?neering=20Leadership=20and=20Engineering=20Opportunities?= Date: Wed, 5 Aug 2020 12:27:05 -0600 Subject: [PATCH] Update loglevels.hpp --- src/g3log/loglevels.hpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/g3log/loglevels.hpp b/src/g3log/loglevels.hpp index 3751344..50077b6 100644 --- a/src/g3log/loglevels.hpp +++ b/src/g3log/loglevels.hpp @@ -62,12 +62,11 @@ struct LEVELS { }; // If you want to add any extra logging level then please add to your own source file the logging level you need -// then insert it using g3::only_change_at_initialization::addLogLevel(...). Please note that this only works for dynamic logging levels. +// 1. If the cmake option G3_DYNAMIC_LOGGING is enabled then you must use g3::only_change_at_initialization::addLogLevel(...). +// to give g3log a record of your logging level and if it is an enabled or disbled logging level. // -// There should be NO reason for modifying this source file when adding custom levels -// -// When dynamic loggins levels are disabled then adding your own logging levels is not required as -// the new logging level by default will always be enabled. +// 2. If the cmake dynamic logging option is turned OF +// then giving g3log a record of your logging level with 'addLogLevel(...) is NOT needed since all logging levels are enabled // // example: MyLoggingLevel.h // #pragma once