QB_LOG_FACILITY2STR(3)
π QB_LOG_FACILITY2STR β libqb Programmer's Manual π
okay bestie, welcome to the libqb corner of the manpage universe π¦ this one lives in the libqb Programmer's Manual, and it is short. like, suspiciously short. but we're gonna give it the full main-character treatment anyway, because every page deserves love. periodt. π
β¨ NAME β¨
qb_log_facility2str β the little function that takes a number like LOG_AUTH and hands you back the matching string, like "auth" and so on. glow-up in one call, no cap. πΈ
π SYNOPSIS π
#include <qb/qblog.h>
const char * qb_log_facility2str(
int32_t fnum
);
so you include <qb/qblog.h>, you pass in an int32_t called fnum, and it gives you back a const char *. literally that's the whole thing. π
π DESCRIPTION π
bestie. okay. i need you to sit down for this one. π
this page has a DESCRIPTION section, and the DESCRIPTION section is... empty. like, genuinely empty. not a single word. no text, no caveats, no "see below", nothing. it's giving "turned in the assignment with just the title slide." π
so there is no description text for me to translate into our beautiful group-chat dialect. i will not be inventing one either, because rule number one of this household is: the vibe changes, the facts do not. and there are no facts here to change. π
what we do know, from the NAME and SYNOPSIS alone:
qb_log_facility2strconverts a facility number to its equivalent string, e.g.LOG_AUTHβ"auth".- it takes one
int32_targument namedfnum. - it returns a
const char *.
anything beyond that? not on this page. if you need the deep lore, hit up the SEE ALSO crew below. they're the ones who actually brought snacks to the function. π
π₯ SEE ALSO π₯
the whole friend group showed up, and honestly? iconic. every single one of these is linked from this page:
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_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)
ngl, qb_log_facility2int(3) is sitting right there in that list like the mirror-image twin. the way that they're literally inverses of each other? obsessed. π«Ά
π COPYRIGHT π
Copyright (c) 2017 Red Hat, Inc.
and that's the whole page, bestie π this was LIBQB, version dated 2025-09-16, and you just read QB_LOG_FACILITY2STR(3). short, sweet, and still slaying. go forth and convert those facilities. β¨ππ¦
π¦ 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