mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2026-11-18 13:11:27 +01:00
allow to set the log level
This commit is contained in:
1 parent
82b6c86247
commit
7d93ecb063
4 files changed
+358
-2
No files matched your search
@@ -28,6 +28,7 @@ class GwLog{
|
||||
void logDebug(int level, const char *fmt,...);
|
||||
int isActive(int level){return level <= logLevel;};
|
||||
void flush();
|
||||
void setLevel(int level){this->logLevel=level;}
|
||||
};
|
||||
#define LOG_DEBUG(level,...){ if (logger != NULL && logger->isActive(level)) logger->logDebug(level,__VA_ARGS__);}
|
||||
|
||||
|
||||
Reference in new issue
Block a user