Message log back-end.
More...
|
#define | vlc_log_gen(logger, prio, ...) |
|
#define | vlc_info(logger, ...) vlc_log_gen(logger, VLC_MSG_INFO, __VA_ARGS__) |
|
#define | vlc_error(logger, ...) vlc_log_gen(logger, VLC_MSG_ERR, __VA_ARGS__) |
|
#define | vlc_warning(logger, ...) vlc_log_gen(logger, VLC_MSG_WARN, __VA_ARGS__) |
|
#define | vlc_debug(logger, ...) vlc_log_gen(logger, VLC_MSG_DBG, __VA_ARGS__) |
|
|
typedef void(* | vlc_log_cb) (void *data, int type, const vlc_log_t *item, const char *fmt, va_list args) |
| Message logging callback signature.
|
|
|
void | vlc_Log (struct vlc_logger *const *logger, int prio, const char *type, const char *module, const char *file, unsigned line, const char *func, const char *format,...) |
|
void | vlc_vaLog (struct vlc_logger *const *logger, int prio, const char *type, const char *module, const char *file, unsigned line, const char *func, const char *format, va_list ap) |
|
struct vlc_logger * | vlc_LogHeaderCreate (struct vlc_logger *parent, const char *str) |
| Creates a prefixed message log.
|
|
void | vlc_LogDestroy (struct vlc_logger *) |
| Destroys a message log.
|
|
Message log back-end.
◆ vlc_debug
◆ vlc_error
◆ vlc_info
◆ vlc_log_gen
#define vlc_log_gen |
( |
|
logger, |
|
|
|
prio, |
|
|
|
... |
|
) |
| |
Value:
__FILE__, __LINE__, __func__, __VA_ARGS__)
void vlc_Log(struct vlc_logger *const *logger, int prio, const char *type, const char *module, const char *file, unsigned line, const char *func, const char *format,...)
Definition messages.c:160
const char vlc_module_name[]
◆ vlc_warning
◆ vlc_log_cb
typedef void(* vlc_log_cb) (void *data, int type, const vlc_log_t *item, const char *fmt, va_list args) |
Message logging callback signature.
- Parameters
-
data | data pointer as provided to vlc_LogSet(). |
type | message type (VLC_MSG_* values from enum vlc_log_type) |
item | meta information |
fmt | format string |
args | format string arguments |
◆ vlc_Log()
void vlc_Log |
( |
struct vlc_logger *const * |
logger, |
|
|
int |
prio, |
|
|
const char * |
type, |
|
|
const char * |
module, |
|
|
const char * |
file, |
|
|
unsigned |
line, |
|
|
const char * |
func, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| |
◆ vlc_LogDestroy()
◆ vlc_LogHeaderCreate()
◆ vlc_vaLog()
void vlc_vaLog |
( |
struct vlc_logger *const * |
logger, |
|
|
int |
prio, |
|
|
const char * |
type, |
|
|
const char * |
module, |
|
|
const char * |
file, |
|
|
unsigned |
line, |
|
|
const char * |
func, |
|
|
const char * |
format, |
|
|
va_list |
ap |
|
) |
| |
References vlc_log_t::file, vlc_log_t::func, vlc_log_t::i_object_id, vlc_log_t::line, p, vlc_log_t::psz_header, vlc_log_t::psz_module, vlc_log_t::psz_object_type, vlc_log_t::tid, vlc_thread_id(), and vlc_vaLogCallback().
Referenced by vlc_http_dbg(), vlc_http_err(), vlc_Log(), and vlc_object_vaLog().