1QB_LOG_CTL(3)              libqb Programmer's Manual             QB_LOG_CTL(3)
2
3
4

NAME

6       qb_log_ctl - Main logging control function.
7
8

SYNOPSIS

10       #include <qb/qblog.h>
11
12       int32_t qb_log_ctl(
13           /*
14            * QB_LOG_SYSLOG, QB_LOG_STDERR or result from qb_log_file_open()
15            */
16           int32_t           target,
17           /*
18            * configuration directive ("what to configure") that accepts int32_t
19            * argument determining the new value unless ignored for particular directive
20            * altogether (incompatible directives: QB_LOG_CONF_IDENT)
21            */
22           enum qb_log_conf  conf_type,
23           /*
24            * the new value for a state-changing configuration directive, ignored
25            * otherwise
26            */
27           int32_t           arg
28       );
29

PARAMS

31       target        QB_LOG_SYSLOG,     QB_LOG_STDERR     or    result    from
32       qb_log_file_open()
33
34       conf_type configuration directive ("what to  configure")  that  accepts
35       int32_t  argument determining the new value unless ignored for particuā€
36       lar directive altogether (incompatible directives: QB_LOG_CONF_IDENT)
37
38       arg       the new value for a state-changing  configuration  directive,
39       ignored otherwise
40

DESCRIPTION

STRUCTURES

43       enum qb_log_conf {
44             QB_LOG_CONF_ENABLED;
45             QB_LOG_CONF_FACILITY;
46             QB_LOG_CONF_DEBUG;
47             QB_LOG_CONF_SIZE;
48             QB_LOG_CONF_THREADED;
49             QB_LOG_CONF_PRIORITY_BUMP;
50             QB_LOG_CONF_STATE_GET;
51             QB_LOG_CONF_FILE_SYNC;
52             QB_LOG_CONF_EXTENDED;
53             QB_LOG_CONF_IDENT;
54             QB_LOG_CONF_MAX_LINE_LEN;
55             QB_LOG_CONF_ELLIPSIS;
56             QB_LOG_CONF_USE_JOURNAL;
57       };
58

RETURN VALUE

60       -errno     on error
61
62       0          on success
63
64       qb_log_target_state for QB_LOG_CONF_STATE_GET
65

SEE ALSO

67       qb_log_filter_fn_set(3), qb_log_from_external_source_va2(3),
68       qb_log_thread_start(3), qb_log_target_user_data_get(3),
69       qb_log_tags_stringify_fn_set(3), qb_log_file_reopen(3), qb_log_fini(3),
70       qb_log_callsites_dump(3), qb_log_ctl2(3),
71       qb_log_target_user_data_set(3), qb_log_target_format(3),
72       qb_log_thread_priority_set(3), qb_log_facility2int(3),
73       qb_log_callsites_register(3), qb_log_filter_ctl2(3),
74       qb_log_file_close(3), qb_log_format_set(3), qb_log_real_(3),
75       qb_log_from_external_source_va(3), qb_log_callsite_get(3),
76       qb_log_blackbox_write_to_file(3), qb_log_real_va_(3),
77       qb_log_from_external_source(3), qb_log_blackbox_print_from_file(3),
78       qb_log_facility2str(3), qb_log_callsite_get2(3), qb_log_filter_ctl(3),
79       qb_log_custom_close(3), qb_log_init(3), qb_log_file_open(3),
80       qb_log_custom_open(3)
81
83       Copyright (c) 2017 Red Hat, Inc.
84
85
86
87LIBQB                             2023-07-21                     QB_LOG_CTL(3)
Impressum