|
IoT managed integrations End Device SDK
|
Defines the configuration constants for all logging verbosity levels. More...
Go to the source code of this file.
Macros | |
| #define | LOG_NONE 0 |
| Log levels for the libraries in this SDK. | |
| #define | LOG_ERROR 1 |
| Represents erroneous application state or event. | |
| #define | LOG_WARN 2 |
| Message about an abnormal event. | |
| #define | LOG_INFO 3 |
| A helpful, informational message. | |
| #define | LOG_DEBUG 4 |
| Detailed and excessive debug information. | |
Defines the configuration constants for all logging verbosity levels.
| #define LOG_DEBUG 4 |
Detailed and excessive debug information.
Debug log messages are used to provide the progress of the program at a fine-grained level. These are mostly used for debugging and may contain excessive information such as internal variables, buffers, or other specific information.
These messages are only printed when LIBRARY_LOG_LEVEL is defined as LOG_DEBUG.
| #define LOG_ERROR 1 |
| #define LOG_INFO 3 |
| #define LOG_NONE 0 |
Log levels for the libraries in this SDK.
@constantspage{logging,logging library}
Each library should specify a log level by setting LIBRARY_LOG_LEVEL. All log messages with a level at or below the specified level will be printed for that library.
Currently, there are 4 log levels. In the order of lowest to highest, they are:
Log levels for the libraries in this SDK.
Represents erroneous application state or event.
Message about an abnormal event.
A helpful, informational message.
Detailed and excessive debug information.
No log messages.
When LIBRARY_LOG_LEVEL is LOG_NONE, logging is disabled and no logging messages are printed.
| #define LOG_WARN 2 |
Message about an abnormal event.
These messages describe the situations when a library encounters abnormal event that may be indicative of an error. Libraries continue execution after logging a warning.
These messages are printed when LIBRARY_LOG_LEVEL is defined as either of LOG_WARN, LOG_INFO or LOG_DEBUG.