Logging and Debugging. More...
Go to the source code of this file.
Macros | |
Janus log colors | |
#define | ANSI_COLOR_RED "\x1b[31m" |
#define | ANSI_COLOR_GREEN "\x1b[32m" |
#define | ANSI_COLOR_YELLOW "\x1b[33m" |
#define | ANSI_COLOR_BLUE "\x1b[34m" |
#define | ANSI_COLOR_MAGENTA "\x1b[35m" |
#define | ANSI_COLOR_CYAN "\x1b[36m" |
#define | ANSI_COLOR_RESET "\x1b[0m" |
Janus log wrappers | |
#define | JANUS_PRINT janus_vprintf |
Simple wrapper to g_print/printf. More... | |
#define | JANUS_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. More... | |
Variables | |
int | janus_log_level |
gboolean | janus_log_timestamps |
gboolean | janus_log_colors |
char * | janus_log_global_prefix |
Janus log levels | |
#define | LOG_NONE (0) |
No debugging. More... | |
#define | LOG_FATAL (1) |
Fatal error. More... | |
#define | LOG_ERR (2) |
Non-fatal error. More... | |
#define | LOG_WARN (3) |
Warning. More... | |
#define | LOG_INFO (4) |
Informational message. More... | |
#define | LOG_VERB (5) |
Verbose message. More... | |
#define | LOG_HUGE (6) |
Overly verbose message. More... | |
#define | LOG_DBG (7) |
Debug message (includes .c filename, function and line number) More... | |
#define | LOG_MAX LOG_DBG |
Maximum level of debugging. More... | |
Logging and Debugging.
Implementation of a wrapper on printf (or g_print) to either log or debug.
#define ANSI_COLOR_BLUE "\x1b[34m" |
#define ANSI_COLOR_CYAN "\x1b[36m" |
#define ANSI_COLOR_GREEN "\x1b[32m" |
#define ANSI_COLOR_MAGENTA "\x1b[35m" |
#define ANSI_COLOR_RED "\x1b[31m" |
#define ANSI_COLOR_RESET "\x1b[0m" |
#define ANSI_COLOR_YELLOW "\x1b[33m" |
#define JANUS_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 JANUS_PRINT janus_vprintf |
Simple wrapper to g_print/printf.
#define LOG_DBG (7) |
Debug message (includes .c filename, function and line number)
#define LOG_ERR (2) |
Non-fatal error.
#define LOG_FATAL (1) |
Fatal error.
#define LOG_HUGE (6) |
Overly verbose message.
#define LOG_INFO (4) |
Informational message.
#define LOG_MAX LOG_DBG |
Maximum level of debugging.
#define LOG_NONE (0) |
No debugging.
#define LOG_VERB (5) |
Verbose message.
#define LOG_WARN (3) |
Warning.
|
extern |
|
extern |
|
extern |
|
extern |