libalpm_log(3)
β¨ NAME β¨
libalpm_log β Logging Functions π
okay bestie so this is the part of the libalpm manual (section 3, library functions, iykyk) that handles all the logging. like, the functions that let libalpm log stuff. that's it, that's the vibe β¨
- Functions to log using libalpm
πΈ SYNOPSIS πΈ
π Typedefs
typedef void(* alpm_cb_log) (void *ctx, alpm_loglevel_t level, const
char *fmt, va_list args)
the callback type for logging, periodt.
π Enumerations
enum alpm_loglevel_t { ALPM_LOG_ERROR = 1, ALPM_LOG_WARNING = (1 << 1),
ALPM_LOG_DEBUG = (1 << 2), ALPM_LOG_FUNCTION = (1 << 3) }
logging levels π
π Functions
int alpm_logaction (alpm_handle_t *handle, const char *prefix, const
char *fmt,...) __attribute__((format(printf
a printf-like function for logging, fr fr.
π¦ Detailed Description π¦
Functions to log using libalpm. that's the whole thing bestie, it's giving "we log things" and honestly? iconic.
π Typedef Documentation π
π typedef void(* alpm_cb_log) (void *ctx, alpm_loglevel_t level, const char *fmt, va_list args)
this is the callback type for logging. here's the tea: libalpm will call this function whenever something is to be logged. many libalpm will produce log output. and on top of that, any calls to alpm_logaction will also call this callback. so like, she stays busy π
Parameters
ctxβ user-provided contextlevelβ the currently set loglevelfmtβ the printf like format stringargsβ printf like arguments
π Enumeration Type Documentation π
β¨ enum alpm_loglevel_t
Logging Levels. the whole spectrum, bestie π
Enumerator
ALPM_LOG_ERRORβ Error. πALPM_LOG_WARNINGβ Warning. πALPM_LOG_DEBUGβ Debug. π₯ALPM_LOG_FUNCTIONβ Function. β¨
π Function Documentation π
π int alpm_logaction (alpm_handle_t * handle, const char * prefix, const char * fmt, ...)
A printf-like function for logging. she's literally just here to write your logs down π
Parameters
handleβ the context handleprefixβ caller-specific prefix for the logfmtβ output format
Returns
0 on success, -1 on error (pm_errno is set accordingly)
ngl if you get that-1back, go checkpm_errnobefore you spiral, bestie π«Ά
π§ Author π§
Generated automatically by Doxygen for libalpm from the source code. no human wrote this, it just appeared, main character energy π
and that's the whole page, my love π this was libalpm_log(3) from the libalpm manual β source is libalpm, generated by Doxygen, and we are so done here. slay, stay logged, mwah πβ¨
π¦ where this page comes from
- arch rolling: pacman 7.1.0.r9.g54d9411-2
- epel 10: libalpm-devel 7.0.0-5.el10_2 Β· GPL-2.0-or-later
- fedora 43: libalpm-devel 7.0.0-5.fc43 Β· GPL-2.0-or-later
- fedora 43: libalpm-devel 7.0.0-5.fc43 Β· GPL-2.0-or-later
- fedora 44: libalpm-devel 7.0.0-6.fc44 Β· GPL-2.0-or-later
- fedora 44: libalpm-devel 7.0.0-6.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms