|
clibs
Tiny but handy utility libraries for C
|
Logging-related macros. More...
#include <stdio.h>#include <stdlib.h>
Go to the source code of this file.
Macros | |
| #define | CLIBS_LOG_LEVEL_DEBUG 5 |
| #define | CLIBS_LOG_LEVEL_INFO 4 |
| #define | CLIBS_LOG_LEVEL_WARN 3 |
| #define | CLIBS_LOG_LEVEL_ERROR 2 |
| #define | CLIBS_LOG_LEVEL_FATAL 1 |
| #define | CLIBS_LOG_LEVEL_NONE 0 |
| #define | CLIBS_LOG_LEVEL CLIBS_LOG_LEVEL_NONE |
| The logging level of an application. More... | |
| #define | END_OF_LINE "\n" |
| #define | CLIBS_LOG_DEBUG(format, ...) |
DEBUG-level log More... | |
| #define | CLIBS_LOG_INFO(format, ...) |
INFO-level log More... | |
| #define | CLIBS_LOG_WARN(format, ...) |
WARN-level log More... | |
| #define | CLIBS_LOG_ERROR(format, ...) |
ERROR-level log More... | |
| #define | CLIBS_LOG_FATAL(format, ...) |
FATAL-level log More... | |
Logging-related macros.
| #define CLIBS_LOG_DEBUG | ( | format, | |
| ... | |||
| ) |
DEBUG-level log
| format | The formated string. |
The logs are available only when CLIBS_LOG_LEVEL is at DEBUG.
| #define CLIBS_LOG_ERROR | ( | format, | |
| ... | |||
| ) |
ERROR-level log
| format | The formated string. |
The logs are available only when CLIBS_LOG_LEVEL is at ERROR or above.
| #define CLIBS_LOG_FATAL | ( | format, | |
| ... | |||
| ) |
FATAL-level log
| format | The formated string. |
The logs are available only when CLIBS_LOG_LEVEL is at FATAL or above.
| #define CLIBS_LOG_INFO | ( | format, | |
| ... | |||
| ) |
INFO-level log
| format | The formated string. |
The logs are available only when CLIBS_LOG_LEVEL is at INFO or above.
| #define CLIBS_LOG_LEVEL CLIBS_LOG_LEVEL_NONE |
The logging level of an application.
Available logging levels: DEBUG, INFO, WARN, ERROR and FATAL. Logging levels are defined by macro variables of the same names.
| #define CLIBS_LOG_WARN | ( | format, | |
| ... | |||
| ) |
WARN-level log
| format | The formated string. |
The logs are available only when CLIBS_LOG_LEVEL is at WARN or above.
1.8.13