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:


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