libalpm
Arch Linux Package Manager Library
Functions
Logging Functions

Functions to log using libalpm. More...

Functions

int alpm_logaction (alpm_handle_t *handle, const char *fmt,...)
 A printf-like function for logging.

Detailed Description

Functions to log using libalpm.


Function Documentation

int alpm_logaction ( alpm_handle_t handle,
const char *  fmt,
  ... 
)

A printf-like function for logging.

Parameters:
handlethe context handle
fmtoutput format
Returns:
0 on success, -1 on error (pm_errno is set accordingly)

Definition at line 41 of file log.c.

References _alpm_logaction(), ALPM_ERR_BADPERMS, ALPM_ERR_NOT_A_DIR, ALPM_ERR_SYSTEM, ASSERT, __alpm_handle_t::logfile, __alpm_handle_t::logstream, and __alpm_handle_t::pm_errno.

Referenced by _alpm_run_chroot(), alpm_trans_release(), cb_event(), and pacman_sync().

Here is the call graph for this function:

Here is the caller graph for this function: