#include <uv.h>
#include "externs.h"
Go to the source code of this file.
|
typedef void(* | log_writer) (int level, const char *loc, const char *msg, size_t msglen) |
|
|
void | ziti_logger (int level, const char *module, const char *file, unsigned int line, const char *func, const char *fmt,...) |
|
void | ziti_log_init (uv_loop_t *loop, int level, log_writer logger) |
|
void | ziti_log_set_logger (log_writer logger) |
|
void | ziti_log_set_level (int level, const char *marker) |
|
int | ziti_log_level (const char *module, const char *file) |
|
void | ziti_log_set_level_by_label (const char *log_level) |
|
const char * | ziti_log_level_label () |
|
void | tlsuv_logger (int level, const char *file, unsigned int line, const char *msg) |
| can be used to turn on logging of uv-mbed library and send log messages into the ziti_log Usage: uv_mbed_set_debug(level, tlsuv_logger);
|
|
◆ __FILENAME__
#define __FILENAME__ __FILE__ |
◆ _level
◆ _to_str
◆ DEBUG_LEVELS
#define DEBUG_LEVELS |
( |
|
XX | ) |
|
Value:
@ DEBUG
Definition ziti_log.h:52
@ ERROR
Definition ziti_log.h:52
@ INFO
Definition ziti_log.h:52
@ WARN
Definition ziti_log.h:52
@ TRACE
Definition ziti_log.h:52
@ NONE
Definition ziti_log.h:52
@ VERBOSE
Definition ziti_log.h:52
◆ FORMAT_STRING
#define FORMAT_STRING |
( |
|
p | ) |
p |
◆ to_str
◆ ZITI_LOG
#define ZITI_LOG |
( |
|
level, |
|
|
|
fmt, |
|
|
|
... |
|
) |
| |
Value:do { \
} while(0)
#define ZITI_LOG_MODULE
Definition ziti_log.h:57
void ziti_logger(int level, const char *module, const char *file, unsigned int line, const char *func, const char *fmt,...)
#define __FILENAME__
Definition ziti_log.h:29
int ziti_log_level(const char *module, const char *file)
◆ ZITI_LOG_DEFAULT_LEVEL
#define ZITI_LOG_DEFAULT_LEVEL (-1) |
◆ ZITI_LOG_MODULE
#define ZITI_LOG_MODULE NULL |
◆ ZITI_LOG_PREFIX
◆ ziti_printf_args
#define ziti_printf_args |
( |
|
a, |
|
|
|
b |
|
) |
| |
◆ log_writer
typedef void(* log_writer) (int level, const char *loc, const char *msg, size_t msglen) |
◆ DebugLevel
Enumerator |
---|
NONE | |
ERROR | |
WARN | |
INFO | |
DEBUG | |
VERBOSE | |
TRACE | |
◆ tlsuv_logger()
void tlsuv_logger |
( |
int |
level, |
|
|
const char * |
file, |
|
|
unsigned int |
line, |
|
|
const char * |
msg |
|
) |
| |
can be used to turn on logging of uv-mbed library and send log messages into the ziti_log Usage: uv_mbed_set_debug(level, tlsuv_logger);
◆ ziti_log_init()
void ziti_log_init |
( |
uv_loop_t * |
loop, |
|
|
int |
level, |
|
|
log_writer |
logger |
|
) |
| |
|
extern |
◆ ziti_log_level()
int ziti_log_level |
( |
const char * |
module, |
|
|
const char * |
file |
|
) |
| |
|
extern |
◆ ziti_log_level_label()
const char * ziti_log_level_label |
( |
| ) |
|
|
extern |
◆ ziti_log_set_level()
void ziti_log_set_level |
( |
int |
level, |
|
|
const char * |
marker |
|
) |
| |
|
extern |
◆ ziti_log_set_level_by_label()
void ziti_log_set_level_by_label |
( |
const char * |
log_level | ) |
|
|
extern |
◆ ziti_log_set_logger()
◆ ziti_logger()
void ziti_logger |
( |
int |
level, |
|
|
const char * |
module, |
|
|
const char * |
file, |
|
|
unsigned int |
line, |
|
|
const char * |
func, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
|
extern |