Logging and Debugging. More...
#include <glib.h>
#include <glib/gprintf.h>
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 g_print |
Simple wrapper to g_print/printf. | |
#define | JANUS_LOG(level, format,...) |
Logger based on different levels, which can either be displayed or not according to the configuration of the gateway. The format must be a string literal. |
Variables | |
int | janus_log_level |
gboolean | janus_log_timestamps |
gboolean | janus_log_colors |
Janus log levels | |
#define | LOG_NONE (0) |
No debugging. | |
#define | LOG_FATAL (1) |
Fatal error. | |
#define | LOG_ERR (2) |
Non-fatal error. | |
#define | LOG_WARN (3) |
Warning. | |
#define | LOG_INFO (4) |
Informational message. | |
#define | LOG_VERB (5) |
Verbose message. | |
#define | LOG_HUGE (6) |
Overly verbose message. | |
#define | LOG_DBG (7) |
Debug message (includes .c filename, function and line number) | |
#define | LOG_MAX LOG_DBG |
Maximum level of debugging. |
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 gateway. The format must be a string literal.
#define JANUS_PRINT g_print |
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.
gboolean janus_log_colors |
int janus_log_level |
gboolean janus_log_timestamps |