'\" t .\" Title: loc_set_log_fn .\" Author: [see the "Authors" section] .\" Generator: DocBook XSL Stylesheets vsnapshot .\" Date: 12/02/2022 .\" Manual: \ \& .\" Source: \ \& .\" Language: English .\" .TH "LOC_SET_LOG_FN" "3" "" "\ \&" "\ \&" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" loc_set_log_fn \- Sets the log callback function .SH "SYNOPSIS" .sp .nf #include .fi .sp 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) .SH "DESCRIPTION" .sp libloc can use the calling application\(cqs logging system by setting this callback\&. .sp It will be called once for each log message according to the configured log level\&. .SH "SEE ALSO" .sp \fBlibloc\fR(3) .SH "AUTHORS" .sp Michael Tremer