libonion
|
Macros | |
#define | ONION_DEBUG(...) |
Logs a debug information. When compiled in release mode this is not compiled. | |
#define | ONION_DEBUG0(...) |
Logs a lower debug information. When compiled in release mode this is not compiledTo use it, an environmetal variable ONION_DEBUG0=filename.c is required. If not present it shows nothing. | |
#define | ONION_INFO(...) onion_log(O_INFO, __FILE__, __LINE__, __VA_ARGS__) |
Logs some information. | |
#define | ONION_WARNING(...) onion_log(O_WARNING, __FILE__, __LINE__, __VA_ARGS__) |
Logs some warning. | |
#define | ONION_ERROR(...) onion_log(O_ERROR, __FILE__, __LINE__, __VA_ARGS__) |
Logs some error. |
Typedefs | |
typedef enum onion_log_level_e | onion_log_level |
Enumerations | |
enum | onion_log_level_e { O_DEBUG0 = 0, O_DEBUG = 1, O_INFO = 2, O_WARNING = 3, O_ERROR = 4 } |
enum | onion_log_flags_e { OF_INIT = 1, OF_NOCOLOR = 2, OF_SYSLOGINIT = 8, OF_NOINFO = 16, OF_NODEBUG = 32 } |
Functions | |
void | onion_log_stderr (onion_log_level level, const char *filename, int lineno, const char *fmt,...) |
Logs to stderr.It can be affected also by the environment variable ONION_LOG, with one or several of: | |
void | onion_log_syslog (onion_log_level level, const char *filename, int lineno, const char *fmt,...) |
Performs the log to the syslog. |
Variables | |
int | onion_log_flags |
void(* | onion_log )(onion_log_level level, const char *filename, int lineno, const char *fmt,...) |
This function can be overwritten with whatever onion_log facility you want to use, same signature. |
typedef enum onion_log_level_e onion_log_level |
enum onion_log_flags_e |
enum onion_log_level_e |
int onion_log_flags |
Referenced by onion_log_stderr(), and onion_response_t::onion_response_free().