libalpm_log(3)

πŸ“¦
version 7.1.0.r9.g54d9411 Β· 3 versions
, in arch rolling, epel 10, fedora 43, fedora 44

✨ 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 context
  • level β€” the currently set loglevel
  • fmt β€” the printf like format string
  • args β€” 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 handle
  • prefix β€” caller-specific prefix for the log
  • fmt β€” output format

Returns

0 on success, -1 on error (pm_errno is set accordingly)

ngl if you get that -1 back, go check pm_errno before 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 πŸŽ€βœ¨