Add serial log levels
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#pragma once
|
||||
|
||||
#include <Arduino.h>
|
||||
|
||||
enum LogLevel {
|
||||
LOG_QUIET = 0,
|
||||
LOG_INFO = 1,
|
||||
LOG_DEBUG = 2
|
||||
};
|
||||
|
||||
extern LogLevel currentLogLevel;
|
||||
|
||||
void setLogLevel(LogLevel level);
|
||||
void logInfo(const String& message);
|
||||
void logDebug(const String& message);
|
||||
Reference in New Issue
Block a user