diff options
Diffstat (limited to 'src/common/logging.cpp')
-rw-r--r-- | src/common/logging.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/common/logging.cpp b/src/common/logging.cpp index d9417659..cde74339 100644 --- a/src/common/logging.cpp +++ b/src/common/logging.cpp @@ -60,6 +60,15 @@ otbrLogLevel otbrLogGetLevel(void) return sLevel; } +/** + * Set current log level. + */ +void otbrLogSetLevel(otbrLogLevel aLevel) +{ + assert(aLevel >= OTBR_LOG_EMERG && aLevel <= OTBR_LOG_DEBUG); + sLevel = aLevel; +} + /** Initialize logging */ void otbrLogInit(const char *aIdent, otbrLogLevel aLevel, bool aPrintStderr) { |