QB_LOG_REAL_(3)
π QB_LOG_REAL_(3) π
okay bestie, so this one lives in the libqb Programmer's Manual, and I need you to hear me when I say: it's an internal function. Like, backstage-pass energy. The page literally says so itself. β¨
πΈ NAME πΈ
qb_log_real_ β Internal function: use qb_log() or qb_logt().
no cap, that's the whole name section. the function is internal, and the manpage is telling you to your face: go useqb_log()orqb_logt()instead. periodt. π
π¦ SYNOPSIS π¦
#include <qb/qblog.h>
void qb_log_real_(
struct qb_log_callsite *cs,
...
);
like, it takes a cs (a struct qb_log_callsite *) and then ... β yes, literally just vibes and varargs after that. π«Ά
β¨ DESCRIPTION β¨
ngl the og page keeps this section very lowkey β there's no prose here, it just rolls straight into the structures. so let's go. π
π STRUCTURES π
here's the tea: an instance of this struct gets created for each log message, with the message-id. one per message. iconic behavior honestly. π
struct qb_log_callsite {
const char *function;
const char *filename;
const char *format;
uint8_t priority;
uint32_t lineno;
uint32_t targets;
uint32_t tags;
const char *message_id;
};
look at her. function, filename, format, priority, lineno, targets, tags, message_id. all the little details about where a log line came from and where it's going. main character struct fr fr. π
π SEE ALSO π
the whole friend group, no one left out: π«Ά
qb_log_filter_fn_set(3)qb_log_from_external_source_va2(3)qb_log_thread_start(3)qb_log_target_user_data_get(3)qb_log_tags_stringify_fn_set(3)qb_log_file_reopen(3)qb_log_fini(3)qb_log_callsites_dump(3)qb_log_ctl2(3)qb_log_target_user_data_set(3)qb_log_target_format(3)qb_log_thread_priority_set(3)qb_log_facility2int(3)qb_log_callsites_register(3)qb_log_filter_ctl2(3)qb_log_file_close(3)qb_log_format_set(3)qb_log_from_external_source_va(3)qb_log_callsite_get(3)qb_log_blackbox_write_to_file(3)qb_log_real_va_(3)qb_log_from_external_source(3)qb_log_blackbox_print_from_file(3)qb_log_facility2str(3)qb_log_callsite_get2(3)qb_log_ctl(3)qb_log_filter_ctl(3)qb_log_custom_close(3)qb_log_init(3)qb_log_file_open(3)qb_log_custom_open(3)
π COPYRIGHT π
Copyright (c) 2017 Red Hat, Inc.
and that's the whole page, bestie. this is LIBQB, dated 2025-09-16, signing off β stay internal, stay iconic, and go call qb_log() like I told you. πππ¦β¨
π¦ where this page comes from
- fedora 44: libqb-devel 2.0.9-2.fc44 Β· LGPL-2.1-or-later
- fedora 44: libqb-devel 2.0.9-2.fc44 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms