pam_syslog(3)

pam_syslog3

Send messages to the system logger

Usage

#include <syslog.h>
#include <security/pam_ext.h>

void pam_syslog(const pam_handle_t *pamh, int priority, const char *fmt, ...);

void pam_vsyslog(const pam_handle_t *pamh, int priority, const char *fmt, va_list args);

Overview

The pam_syslog function logs messages using syslog(3) and is intended for internal use by Linux-PAM and PAM service modules. The priority argument is formed by ORing the facility and the level values as documented in the syslog(3) manual page.

The pam_vsyslog function performs the same task as pam_syslog() with the difference that it takes a set of arguments which have been obtained using the stdarg(3) variable argument list macros.

Releases

10 releases since Debian 5.0 (Lenny); the text changed 8 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8–9
  5. 10
  6. 11
  7. 12
  8. 13
  9. Arch

Standards

The pam_syslog and pam_vsyslog functions are Linux-PAM extensions.

From pam 1.7.3-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.