loc_set_log_fn(3)

loc_set_log_fn3

Sets the log callback function

Usage

#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)

Overview

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.

Releases

3 releases since Debian 12 (Bookworm); the text changed 2 times.

  1. 12
  2. 13
  3. Arch

Authors

Michael Tremer

From libloc 0.9.19-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.