# phpman > man > pam_syslog(3)

[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 Manual                             06/08/2020                                [PAM_SYSLOG(3)](https://www.chedong.com/phpMan.php/man/PAMSYSLOG/3/markdown)
