|
liblightify
|
Functions | |
| int | lightify_set_log_fn (struct lightify_ctx *ctx, void(*log_fn)(struct lightify_ctx *ctx, int priority, const char *file, int line, const char *fn, const char *format, va_list args)) |
| int | lightify_get_log_priority (struct lightify_ctx *ctx) |
| int | lightify_set_log_priority (struct lightify_ctx *ctx, int priority) |
| int lightify_get_log_priority | ( | struct lightify_ctx * | ctx | ) |
| int lightify_set_log_fn | ( | struct lightify_ctx * | ctx, |
| void(*)(struct lightify_ctx *ctx, int priority, const char *file, int line, const char *fn, const char *format, va_list args) | log_fn | ||
| ) |
Setup logging callback.
| ctx | library context |
| log_fn | function to be used for logging |
lightify_set_log_fn: : library context : function to be called for logging messages
The built-in logging writes to stderr. It can be overridden by a custom function, to plug log messages into the user's logging functionality.
| int lightify_set_log_priority | ( | struct lightify_ctx * | ctx, |
| int | priority | ||
| ) |