Defines the logging level macros. More...
Go to the source code of this file.
Macros | |
#define | LOG_NONE 0 |
No log messages. More... | |
#define | LOG_ERROR 1 |
Represents erroneous application state or event. More... | |
#define | LOG_WARN 2 |
Message about an abnormal event. More... | |
#define | LOG_INFO 3 |
A helpful, informational message. More... | |
#define | LOG_DEBUG 4 |
Detailed and excessive debug information. More... | |
#define | LIBRARY_LOG_LEVEL LOG_ERROR |
The logging level verbosity configuration of log messages from library. More... | |
Defines the logging level macros.
#define LOG_NONE 0 |
No log messages.
When LIBRARY_LOG_LEVEL is LOG_NONE, logging is disabled and no logging messages are printed.
#define LOG_ERROR 1 |
Represents erroneous application state or event.
These messages describe the situations when a library encounters an error from which it cannot recover.
These messages are printed when LIBRARY_LOG_LEVEL is defined as either of LOG_ERROR, LOG_WARN, LOG_INFO or LOG_DEBUG.
#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.
#define LOG_INFO 3 |
A helpful, informational message.
These messages describe normal execution of a library. They provide the progress of the program at a coarse-grained level.
These messages are printed when LIBRARY_LOG_LEVEL is defined as either of LOG_INFO or LOG_DEBUG.
#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 LIBRARY_LOG_LEVEL LOG_ERROR |
The logging level verbosity configuration of log messages from library.
The logging verbosity levels are one of LOG_DEBUG, LOG_INFO, LOG_WARN, and LOG_ERROR.