qb_log_ctl(3)

qb_log_ctl3

Main logging control function.

Usage

#include <qb/qblog.h>

int32_t qb_log_ctl(
    /*
     * QB_LOG_SYSLOG, QB_LOG_STDERR or result from qb_log_file_open()
     */
    int32_t           target,
    /*
     * configuration directive ("what to configure") that accepts int32_t
     * argument determining the new value unless ignored for particular directive
     * altogether (incompatible directives: QB_LOG_CONF_IDENT)
     */
    enum qb_log_conf  conf_type,
    /*
     * the new value for a state-changing configuration directive, ignored
     * otherwise
     */
    int32_t           arg
);

Params

target QB_LOG_SYSLOG, QB_LOG_STDERR or result from qb_log_file_open()

conf_type configuration directive ("what to configure") that accepts int32_t argument determining the new value unless ignored for particular directive altogether (incompatible directives: QB_LOG_CONF_IDENT)

arg the new value for a state-changing configuration directive, ignored otherwise

Overview

Structures

enum qb_log_conf {
      QB_LOG_CONF_ENABLED;
      QB_LOG_CONF_FACILITY;
      QB_LOG_CONF_DEBUG;
      QB_LOG_CONF_SIZE;
      QB_LOG_CONF_THREADED;
      QB_LOG_CONF_PRIORITY_BUMP;
      QB_LOG_CONF_STATE_GET;
      QB_LOG_CONF_FILE_SYNC;
      QB_LOG_CONF_EXTENDED;
      QB_LOG_CONF_IDENT;
      QB_LOG_CONF_MAX_LINE_LEN;
      QB_LOG_CONF_ELLIPSIS;
      QB_LOG_CONF_USE_JOURNAL;
};

Return value

-errno on error

0 on success

Releases

4 releases since Debian 11 (Bullseye); the text changed 3 times.

  1. 11
  2. 12
  3. 13
  4. Arch

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