Skip to content

Commit 312b11e

Browse files
committed
Add none log level in bytebeam logger
1 parent f9b7cc4 commit 312b11e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/BytebeamLogger.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
class BytebeamLogger {
77
public:
88
enum DebugLevel{
9+
LOG_NONE,
910
LOG_ERROR,
1011
LOG_WARN,
1112
LOG_INFO,
@@ -25,6 +26,11 @@ class BytebeamLogger {
2526
logLevel = level;
2627
}
2728

29+
template <typename... Args>
30+
static void None(const char* module, const char* func, const char* message, Args... args) {
31+
print(LOG_NONE, module, func, message, args...);
32+
}
33+
2834
template <typename... Args>
2935
static void Error(const char* module, const char* func, const char* message, Args... args) {
3036
print(LOG_ERROR, module, func, message, args...);
@@ -61,6 +67,7 @@ class BytebeamLogger {
6167

6268
// print the debug level
6369
switch (level) {
70+
case LOG_NONE : Serial.print("LOG_NONE"); break;
6471
case LOG_ERROR : Serial.print("LOG_ERROR"); break;
6572
case LOG_WARN : Serial.print("LOG_WARN"); break;
6673
case LOG_INFO : Serial.print("LOG_INFO"); break;

0 commit comments

Comments
 (0)