5 loc_set_log_fn - Sets the log callback function
10 #include <libloc/libloc.h>
12 void loc_set_log_fn(struct loc_ctx{empty}* ctx,
13 void ({empty}*log_fn)(struct loc_ctx{empty}* ctx, int priority,
14 const char{empty}* file, int line, const char{empty}* fn, const char{empty}* format,
19 libloc can use the calling application's logging system by setting this callback.
21 It will be called once for each log message according to the configured log level.