From f81756181b7d7c75c77a6c37608e98eba2429c67 Mon Sep 17 00:00:00 2001 From: pschatzmann Date: Wed, 26 Jun 2024 09:16:06 +0200 Subject: [PATCH] AudioLogger setLogLevel() --- src/AudioTools/AudioLogger.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/AudioTools/AudioLogger.h b/src/AudioTools/AudioLogger.h index 8917ef4200..b522939111 100644 --- a/src/AudioTools/AudioLogger.h +++ b/src/AudioTools/AudioLogger.h @@ -42,6 +42,11 @@ class AudioLogger { this->log_level = level; } + // defines the log level + void setLogLevel(LogLevel level){ + this->log_level = level; + } + /// checks if the logging is active bool isLogging(LogLevel level = Info){ return log_print_ptr!=nullptr && level >= log_level;