#include <Arduino.h>
Go to the source code of this file.
|
#define | _LOG(prefix, ...) Serial.printf("[" prefix "] " __VA_ARGS__) |
| Logs the given formatted message using the given prefix.
|
|
#define | INFO(...) _LOG("INFO", __VA_ARGS__) |
|
#define | LOG(...) _LOG("LOG", __VA_ARGS__) |
|
#define | ALERT(...) _LOG("ALERT", __VA_ARGS__) |
|
#define | ERROR(...) Serial.printf("[ERROR] " __VA_ARGS__) |
|
#define | DATA_DISPLAY 0 |
|
◆ _LOG
#define _LOG |
( |
|
prefix, |
|
|
|
... |
|
) |
| Serial.printf("[" prefix "] " __VA_ARGS__) |
Logs the given formatted message using the given prefix.
THIS FILE DEFINES MACROS FOR INTERNAL LOGGING PURPOSES *
- Parameters
-
prefix | the prefix to use when logging this message |
Definition at line 15 of file debug.h.
◆ ALERT
#define ALERT |
( |
|
... | ) |
_LOG("ALERT", __VA_ARGS__) |
Prints the formatted message with level ALERT
Definition at line 30 of file debug.h.
◆ DATA_DISPLAY
◆ ERROR
#define ERROR |
( |
|
... | ) |
Serial.printf("[ERROR] " __VA_ARGS__) |
Prints the formatted message with level ERROR
Definition at line 35 of file debug.h.
◆ INFO
#define INFO |
( |
|
... | ) |
_LOG("INFO", __VA_ARGS__) |
Prints the formatted message with level INFO
Definition at line 20 of file debug.h.
◆ LOG
#define LOG |
( |
|
... | ) |
_LOG("LOG", __VA_ARGS__) |
Prints the formatted message with level LOG
Definition at line 25 of file debug.h.