41 {
"local0", LOG_LOCAL0 },
42 {
"local1", LOG_LOCAL1 },
43 {
"local2", LOG_LOCAL2 },
44 {
"local3", LOG_LOCAL3 },
45 {
"local4", LOG_LOCAL4 },
46 {
"local5", LOG_LOCAL5 },
47 {
"local6", LOG_LOCAL6 },
48 {
"local7", LOG_LOCAL7 },
49#if defined(HAVE_SYSLOG_FACILITY_LOG_KERN)
52#if defined(HAVE_SYSLOG_FACILITY_LOG_MAIL)
55#if defined(HAVE_SYSLOG_FACILITY_LOG_DAEMON)
56 {
"daemon", LOG_DAEMON },
58#if defined(HAVE_SYSLOG_FACILITY_LOG_AUTH)
60 {
"security", LOG_AUTH },
62#if defined(HAVE_SYSLOG_FACILITY_LOG_AUTHPRIV)
63 {
"authpriv", LOG_AUTHPRIV },
65#if defined(HAVE_SYSLOG_FACILITY_LOG_SYSLOG)
66 {
"syslog", LOG_SYSLOG },
68#if defined(HAVE_SYSLOG_FACILITY_LOG_FTP)
71#if defined(HAVE_SYSLOG_FACILITY_LOG_LPR)
74#if defined(HAVE_SYSLOG_FACILITY_LOG_NEWS)
77#if defined(HAVE_SYSLOG_FACILITY_LOG_UUCP)
80#if defined(HAVE_SYSLOG_FACILITY_LOG_CRON)
115 {
"alert", LOG_ALERT },
116 {
"crit", LOG_CRIT },
118 {
"emerg", LOG_EMERG },
120 {
"error", LOG_ERR },
121 {
"info", LOG_INFO },
Asterisk main include file. File version handling, generic pbx functions.
const char * ast_syslog_facility_name(int facility)
Maps a syslog facility constant to a string.
static const struct @404 facility_map[]
static const int logger_level_to_syslog_map[]
int ast_syslog_priority(const char *priority)
Maps a syslog priority name from a string to a syslog priority constant.
static const struct @405 priority_map[]
int ast_syslog_priority_from_loglevel(int level)
Maps an Asterisk log level (i.e. LOG_ERROR) to a syslog priority constant.
int ast_syslog_facility(const char *facility)
Maps a syslog facility name from a string to a syslog facility constant.
const char * ast_syslog_priority_name(int priority)
Maps a syslog priority constant to a string.
Syslog support functions for Asterisk logging.