logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

loc_set_log_fn - Sets the log callback function

Authors

       Michael Tremer

                                                                                               LOC_SET_LOG_FN(3)

Description

       libloc can use the calling application’s logging system by setting this callback.

       It will be called once for each log message according to the configured log level.

Name

       loc_set_log_fn - Sets the log callback function

See Also

libloc(3)

Synopsis

       #include <libloc/libloc.h>

       void loc_set_log_fn(struct loc_ctx* ctx, void (*log_fn)(struct loc_ctx* ctx, int priority, const char*
       file, int line, const char* fn, const char* format, va_list args)

See Also