Skip to content

Commit

Permalink
AudioLogger setLogLevel()
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Jun 26, 2024
1 parent 0c5b2a2 commit f817561
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/AudioTools/AudioLogger.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f817561

Please sign in to comment.