]> git.ipfire.org Git - people/ms/libloc.git/blob - man/loc_set_log_fn.txt
importer: Drop EDROP as it has been merged into DROP
[people/ms/libloc.git] / man / loc_set_log_fn.txt
1 = loc_set_log_fn(3)
2
3 == Name
4
5 loc_set_log_fn - Sets the log callback function
6
7 == Synopsis
8 [verse]
9
10 #include <libloc/libloc.h>
11
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,
15 va_list args)
16
17 == Description
18
19 libloc can use the calling application's logging system by setting this callback.
20
21 It will be called once for each log message according to the configured log level.
22
23 == See Also
24
25 link:libloc[3]
26
27 == Authors
28
29 Michael Tremer