# PAM_SYSLOG - send messages to the system logger - man(3) - [phpMan]

[_PAM_SYSLOG_(3)](https://www.chedong.com/phpMan.php/man/PAMSYSLOG/3/markdown)                             Linux-PAM Manual                             [_PAM_SYSLOG_(3)](https://www.chedong.com/phpMan.php/man/PAMSYSLOG/3/markdown)

## NAME
       pam_syslog, pam_vsyslog - send messages to the system logger

## SYNOPSIS
### #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_**);**

## DESCRIPTION
       The **pam_syslog **function logs messages using [**syslog**(3)](https://www.chedong.com/phpMan.php/man/syslog/3/markdown) 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)](https://www.chedong.com/phpMan.php/man/syslog/3/markdown) 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)](https://www.chedong.com/phpMan.php/man/stdarg/3/markdown) variable argument list
       macros.

## SEE ALSO
       [**pam**(7)](https://www.chedong.com/phpMan.php/man/pam/7/markdown)

## STANDARDS
       The **pam_syslog **and **pam_vsyslog **functions are Linux-PAM extensions.

Linux-PAM                                    05/07/2023                                [_PAM_SYSLOG_(3)](https://www.chedong.com/phpMan.php/man/PAMSYSLOG/3/markdown)
