QB_LOG_FINI(3)
π QB_LOG_FINI(3) β the libqb logging shutdown bestie π
okay so this is qb_log_fini, and it lives in section 3 of the libqb Programmer's Manual. she's the last one to leave the party and she turns off all the lights. πβ¨
β¨ NAME β¨
qb_log_fini β the logging system finalization function. aka the "ok we're DONE here" button. π
πΈ SYNOPSIS πΈ
#include <qb/qblog.h>
void qb_log_fini(
void
);
no args, no return value, no drama. she just does the thing. π«Ά
π¦ DESCRIPTION π¦
so like, when you're wrapping up and you want the logging system to actually clean up after itself instead of just ghosting everyone, you call qb_log_fini. here's the tea on what she handles:
- she releases any shared memory. all of it. gone. freed. bye. π
- she stops the logging thread if it's running. if there's a logging thread out there doing its little job, it gets stopped. no thread left behind, no zombie vibes. π
- she flushes the last messages to their destinations. this is the important one bestie β the last messages actually make it out to where they're supposed to go, so nothing gets lost on the way out the door. ππ
it's giving "responsible adult energy" ngl. call her when you're done logging, not before. fr fr.
π SEE ALSO π
the whole friend group, in order, no cap:
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_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_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.
okay that's the whole page, you ate it, i'm so proud of you. π₯Ήπ this gem came to you from LIBQB, dated 2025-09-16, and yes she is exactly QB_LOG_FINI(3) in the flesh. mwah. ππ¦β¨
π¦ 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