QB_LOG_CALLSITE_GET(3)
π QB_LOG_CALLSITE_GET π
okay bestie, so this is qb_log_callsite_get(3) from the libqb Programmer's Manual β she's a lil function in the libqb family and she is, lowkey, the girl who makes sure every log line knows where it came from. let's get into it π¦
β¨ NAME β¨
qb_log_callsite_get β get or create a callsite at the given position. periodt.
πΈ SYNOPSIS πΈ
#include <qb/qblog.h>
struct qb_log_callsite * qb_log_callsite_get(
const char *function, /* originating function name */
const char *filename, /* originating filename */
const char *format, /* format string */
uint8_t priority, /* this takes syslog priorities. */
uint32_t lineno, /* file line number */
uint32_t tags /* the tag */
);
she returns a struct qb_log_callsite * and she takes six lil arguments, no cap π
π PARAMS π
functionβ the originating function name. like, which function are we even in rn?? πfilenameβ the originating filename. the file where the drama is happening πformatβ the format string. the actual words of the log line, bestie βοΈpriorityβ this takes syslog priorities. so it's a syslog-priority kinda situation, not just any random number π₯linenoβ the file line number. yes she wants the exact line, she's precise like that πtagsβ the tag. the lil tag π
π¦ DESCRIPTION π¦
so the whole vibe is: you call her, she gives you a callsite at the position you asked for β getting it or creating it, per the name. and then the result can be passed into qb_log_real_(). that's the tea π
π SEE ALSO π
the whole friend group, in order, exactly as they appear:
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_real_(3)qb_log_from_external_source_va(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)
thirty-one of them. she has a LOT of friends and honestly? iconic. go read them all, iykyk πβ¨
π COPYRIGHT π
Copyright (c) 2017 Red Hat, Inc.
and that's the whole page, bestie!! π«Ά this one's from libqb, dated 2025-09-16, and it's QB_LOG_CALLSITE_GET(3) in case you forgot where you were. mwah, go log something responsibly ππβ
π¦ 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
- ubuntu resolute: libqb-dev 2.0.9-1ubuntu1 Β· LGPL-2.1-or-later
- ubuntu stonking: libqb-dev 2.0.9-1ubuntu1 Β· 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