QB_LOG_FILE_OPEN(3)
β¨ NAME β¨
qb_log_file_open β open a log file. π Like, that's literally the whole vibe bestie, no cap. It opens a log file. Slay.
πΈ SYNOPSIS πΈ
Okay so here's the exact fit, copy it character for character or it's not gonna hit:
#include <qb/qblog.h>
int32_t qb_log_file_open(
const char *filename
);
One argument, one dream: filename is a const char *. That's it. That's the whole signature. π¦
π DESCRIPTION π
Not me noticing the DESCRIPTION section is literally empty in the original manpageβ¦ π Bestie the authors really said "figure it out" and left this part blank. No shade, it's giving minimalist. The NAME section already told you the whole plot though: this function opens a log file. Periodt. π
π«Ά RETURN VALUE π«Ά
Here's what you get back, and you better check it:
-errnoβ this is what you get on error. Negative errno, so like, if it's negative, something went sideways, bestie. π- a value in the inclusive range
QB_LOG_TARGET_DYNAMIC_STARTtoQB_LOG_TARGET_DYNAMIC_ENDβ this is the good outcome β¨ and it's meant to be passed into otherqb_log_*functions, so hold onto it, it's your lil ticket. π
π SEE ALSO π
The whole friend group, fr fr β every single one, no skips:
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_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_custom_open(3)
π COPYRIGHT π
Copyright (c) 2017 Red Hat, Inc. β periodt, protected, iconic. π
Okay that's the whole page, bestie! π«Ά This was QB_LOG_FILE_OPEN(3) from the libqb Programmer's Manual, source/version LIBQB, dated 2025-09-16. Stay logged, stay iconic, 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