Logging and Debugging. More...
#include <inttypes.h>#include <glib.h>#include <glib/gprintf.h>

Go to the source code of this file.
Macros | |
| #define | IMQUIC_MAX_VARINT (((uint64_t)1 << 62) - 1) |
imquic log colors | |
| #define | IMQUIC_ANSI_COLOR_RED "\x1b[31m" |
| #define | IMQUIC_ANSI_COLOR_GREEN "\x1b[32m" |
| #define | IMQUIC_ANSI_COLOR_YELLOW "\x1b[33m" |
| #define | IMQUIC_ANSI_COLOR_BLUE "\x1b[34m" |
| #define | IMQUIC_ANSI_COLOR_MAGENTA "\x1b[35m" |
| #define | IMQUIC_ANSI_COLOR_CYAN "\x1b[36m" |
| #define | IMQUIC_ANSI_COLOR_RESET "\x1b[0m" |
imquic log wrappers | |
| #define | IMQUIC_PRINT g_print |
| Simple wrapper to g_print/printf. | |
| #define | IMQUIC_LOG(level, format, ...) |
| Logger based on different levels, which can either be displayed or not according to the configuration of the server. The format must be a string literal. | |
Variables | |
| int | imquic_log_level |
| gboolean | imquic_log_timestamps |
| gboolean | imquic_log_colors |
imquic log levels | |
| #define | IMQUIC_LOG_NONE (0) |
| No debugging. | |
| #define | IMQUIC_LOG_FATAL (1) |
| Fatal error. | |
| #define | IMQUIC_LOG_ERR (2) |
| Non-fatal error. | |
| #define | IMQUIC_LOG_WARN (3) |
| Warning. | |
| #define | IMQUIC_LOG_INFO (4) |
| Informational message. | |
| #define | IMQUIC_LOG_VERB (5) |
| Verbose message. | |
| #define | IMQUIC_LOG_HUGE (6) |
| Overly verbose message. | |
| #define | IMQUIC_LOG_DBG (7) |
| Debug message (includes .c filename, function and line number) | |
| #define | IMQUIC_LOG_MAX IMQUIC_LOG_DBG |
| Maximum level of debugging. | |
Logging and Debugging.
Implementation of a wrapper on printf (or g_print) to either log or debug.
| #define IMQUIC_ANSI_COLOR_BLUE "\x1b[34m" |
| #define IMQUIC_ANSI_COLOR_CYAN "\x1b[36m" |
| #define IMQUIC_ANSI_COLOR_GREEN "\x1b[32m" |
| #define IMQUIC_ANSI_COLOR_MAGENTA "\x1b[35m" |
| #define IMQUIC_ANSI_COLOR_RED "\x1b[31m" |
| #define IMQUIC_ANSI_COLOR_RESET "\x1b[0m" |
| #define IMQUIC_ANSI_COLOR_YELLOW "\x1b[33m" |
| #define IMQUIC_LOG | ( | level, | |
| format, | |||
| ... ) |
Logger based on different levels, which can either be displayed or not according to the configuration of the server. The format must be a string literal.
| #define IMQUIC_LOG_DBG (7) |
Debug message (includes .c filename, function and line number)
| #define IMQUIC_LOG_ERR (2) |
Non-fatal error.
| #define IMQUIC_LOG_FATAL (1) |
Fatal error.
| #define IMQUIC_LOG_HUGE (6) |
Overly verbose message.
| #define IMQUIC_LOG_INFO (4) |
Informational message.
| #define IMQUIC_LOG_MAX IMQUIC_LOG_DBG |
Maximum level of debugging.
| #define IMQUIC_LOG_NONE (0) |
No debugging.
| #define IMQUIC_LOG_VERB (5) |
Verbose message.
| #define IMQUIC_LOG_WARN (3) |
Warning.
| #define IMQUIC_MAX_VARINT (((uint64_t)1 << 62) - 1) |
| #define IMQUIC_PRINT g_print |
Simple wrapper to g_print/printf.
|
extern |
|
extern |
|
extern |