QB_LOG_FACILITY2INT(3)
π qb_log_facility2int(3) β the libqb Programmer's Manual glow-up π
okay bestie, welcome to the libqb Programmer's Manual, page three of the qb_log_facility2int saga. this is the one that takes your cute little string and hands you back a number. slay. π
β¨ NAME β¨
qb_log_facility2int β Convert string "auth" to equivalent number "LOG_AUTH" etc.
like. it literally does what it says on the tin. you give it "auth", it gives you the number that means LOG_AUTH. no cap. π¦
πΈ SYNOPSIS πΈ
#include <qb/qblog.h>
int32_t qb_log_facility2int(
const char *fname
);
so you gotta #include <qb/qblog.h> first, obviously, and then you call it with one arg, fname, and it hands you back an int32_t. that's the whole vibe. π
π DESCRIPTION π
okay so. this is gonna be quick because β and i am not being dramatic β the description section on this page is literally empty. like, nothing. void. the manpage said "DESCRIPTION" and then simply β¨ did not elaborate β¨. iconic of it, honestly. π
so there's no extra lore here, bestie. what you see in NAME and SYNOPSIS is the entire story: string in, number out. no extra params, no hidden caveats listed, no warnings, no exit codes, no env vars, no files. nothing to memorise. you're free. ποΈ
π«Ά SEE ALSO π«Ά
the full libqb friend group, no one left out, we love a complete roster:
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_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)
(and yes, qb_log_facility2str(3) is right there being the reverse of this one. they're a matching set. besties, even. π«)
β COPYRIGHT β
Copyright (c) 2017 Red Hat, Inc.
and that's the whole page, babe. this lil gem lives in LIBQB, dated 2025-09-16, and it will forever be known as QB_LOG_FACILITY2INT(3). go forth and convert your facilities. 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