aboutsummaryrefslogtreecommitdiff
path: root/src/logging.cpp
diff options
context:
space:
mode:
authorklementtan <klementtan@gmail.com>2022-06-07 00:18:58 +0800
committerJon Atack <jon@atack.com>2022-08-20 11:53:37 +0200
commiteb7bee5f84d41e35cb4296e01bea2aa5ac80a856 (patch)
tree7eb731d9b2689dc82de2cd8f8c17291defea30cd /src/logging.cpp
parent98a1f9c68744074f29fa5fa67514218b5ee9edc4 (diff)
Create -loglevel configuration option
- add a -loglevel=<level>|<category:level> config option to allow users to set a global -loglevel and category-specific log levels. LogPrintLevel messages with a higher severity level than -loglevel will not be printed in the debug log. - for now, this config option is debug-only during the migration to severity-based logging - update unit and functional tests Co-authored-by: "Jon Atack <jon@atack.com>"
Diffstat (limited to 'src/logging.cpp')
-rw-r--r--src/logging.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/logging.cpp b/src/logging.cpp
index 214f6af9a7..0de74c4913 100644
--- a/src/logging.cpp
+++ b/src/logging.cpp
@@ -199,7 +199,7 @@ bool GetLogCategory(BCLog::LogFlags& flag, const std::string& str)
return false;
}
-std::string LogLevelToStr(BCLog::Level level)
+std::string BCLog::Logger::LogLevelToStr(BCLog::Level level) const
{
switch (level) {
case BCLog::Level::Debug: