diff options
author | klementtan <klementtan@gmail.com> | 2022-06-07 00:18:58 +0800 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2022-08-20 11:53:37 +0200 |
commit | eb7bee5f84d41e35cb4296e01bea2aa5ac80a856 (patch) | |
tree | 7eb731d9b2689dc82de2cd8f8c17291defea30cd /src/logging.h | |
parent | 98a1f9c68744074f29fa5fa67514218b5ee9edc4 (diff) | |
download | bitcoin-eb7bee5f84d41e35cb4296e01bea2aa5ac80a856.tar.xz |
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.h')
-rw-r--r-- | src/logging.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/logging.h b/src/logging.h index 680eb47f4b..1288efa0fe 100644 --- a/src/logging.h +++ b/src/logging.h @@ -189,6 +189,9 @@ namespace BCLog { //! Returns a string with all user-selectable log levels. std::string LogLevelsString() const; + //! Returns the string representation of a log level. + std::string LogLevelToStr(BCLog::Level level) const; + bool DefaultShrinkDebugFile() const; }; |