|
libalpm
Arch Linux Package Manager Library
|
Functions to log using libalpm More...

Typedefs | |
| typedef void(* | alpm_cb_log) (void *ctx, alpm_loglevel_t level, const char *fmt, va_list args) |
| The callback type for logging. | |
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. More... | |
Functions | |
| int | alpm_logaction (alpm_handle_t *handle, const char *prefix, const char *fmt,...) __attribute__((format(printf |
| A printf-like function for logging. | |
Functions to log using libalpm
| typedef void(* alpm_cb_log) (void *ctx, alpm_loglevel_t level, const char *fmt, va_list args) |
The callback type for logging.
libalpm will call this function whenever something is to be logged. many libalpm will produce log output. Additionally any calls to alpm_logaction will also call this callback.
| ctx | user-provided context |
| level | the currently set loglevel |
| fmt | the printf like format string |
| args | printf like arguments |
| enum alpm_loglevel_t |
| int alpm_logaction | ( | alpm_handle_t * | handle, |
| const char * | prefix, | ||
| const char * | fmt, | ||
| ... ) |
A printf-like function for logging.
| handle | the context handle |
| prefix | caller-specific prefix for the log |
| fmt | output format |
Referenced by alpm_trans_commit(), commit_single_pkg(), extract_single_file(), perform_extraction(), try_rename(), and unlink_file().