QB_LOG_FILTER_CTL2(3)
π QB_LOG_FILTER_CTL2 π
okay bestie, welcome to the libqb Programmer's Manual β yes that libqb, the one you already know and love π«Ά. this page is all about qb_log_filter_ctl2, and no cap, it's basically the glow-up edition of qb_log_filter_ctl().
β¨ NAME β¨
qb_log_filter_ctl2 β this extends qb_log_filter_ctl() by been able to provide a high_priority.
fr fr that's the whole name section, that's literally what it says. the original is giving "short and mysterious" and we respect it π
πΈ SYNOPSIS πΈ
#include <qb/qblog.h>
int32_t qb_log_filter_ctl2(
int32_t value,
enum qb_log_filter_conf c,
enum qb_log_filter_type type,
const char *text,
uint8_t high_priority,
uint8_t low_priority
);
likeβ¦ look at those params. value, c, type, text, and then two priority args β high_priority and low_priority β that's the whole plot twist of this function, that's the "extra" it brings to the table π
π¦ DESCRIPTION π¦
so here's the thing: this page doesn't actually spell out a big paragraph description. the vibe is delivered entirely through the NAME section (it extends qb_log_filter_ctl(), and it lets you provide a high_priority) plus the enums down below. the details live in the structures, bestie π
π STRUCTURES π
enum qb_log_filter_conf
these are your filter control actions, the "what am I doing to the filter" menu:
enum qb_log_filter_conf {
QB_LOG_FILTER_ADD;
QB_LOG_FILTER_REMOVE;
QB_LOG_FILTER_CLEAR_ALL;
QB_LOG_TAG_SET;
QB_LOG_TAG_CLEAR;
QB_LOG_TAG_CLEAR_ALL;
};
QB_LOG_FILTER_ADDβ add a filter, we're building β¨QB_LOG_FILTER_REMOVEβ remove one, we're curating π§ΉQB_LOG_FILTER_CLEAR_ALLβ nuke the whole filter list, scorched earth energy πQB_LOG_TAG_SETβ set a tag π·οΈQB_LOG_TAG_CLEARβ clear a tag πQB_LOG_TAG_CLEAR_ALLβ clear all the tags, all of them, no survivors π«Ά
enum qb_log_filter_type
and these are the filter types β i.e. what the filter is actually matching against:
enum qb_log_filter_type {
QB_LOG_FILTER_FILE;
QB_LOG_FILTER_FUNCTION;
QB_LOG_FILTER_FORMAT;
QB_LOG_FILTER_FILE_REGEX;
QB_LOG_FILTER_FUNCTION_REGEX;
QB_LOG_FILTER_FORMAT_REGEX;
};
QB_LOG_FILTER_FILEβ match by file πQB_LOG_FILTER_FUNCTIONβ match by function π§QB_LOG_FILTER_FORMATβ match by format π¬QB_LOG_FILTER_FILE_REGEXβ match by file, but make it regex π₯QB_LOG_FILTER_FUNCTION_REGEXβ match by function, regex edition βQB_LOG_FILTER_FORMAT_REGEXβ match by format, regex edition π
π SEE ALSO π
the group chat is long, bestie. every single one of these is invited:
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_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.
and that's the whole page, bestie!! mwah π this was the libqb manual page for qb_log_filter_ctl2, dated 2025-09-16, and you absolutely ate that read. go forth and filter your logs, icon. periodt. π
β¨
π¦ 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