| Asterisk - The Open Source Telephony Project GIT-master-27fb039
    | 
Syslog support functions for Asterisk logging. More...

Go to the source code of this file.
| Macros | |
| #define | ASTNUMLOGLEVELS 32 | 
| Functions | |
| int | ast_syslog_facility (const char *facility) | 
| Maps a syslog facility name from a string to a syslog facility constant. | |
| const char * | ast_syslog_facility_name (int facility) | 
| Maps a syslog facility constant to a string. | |
| int | ast_syslog_priority (const char *priority) | 
| Maps a syslog priority name from a string to a syslog priority constant. | |
| int | ast_syslog_priority_from_loglevel (int level) | 
| Maps an Asterisk log level (i.e. LOG_ERROR) to a syslog priority constant. | |
| const char * | ast_syslog_priority_name (int priority) | 
| Maps a syslog priority constant to a string. | |
Syslog support functions for Asterisk logging.
Definition in file syslog.h.
| int ast_syslog_facility | ( | const char * | facility | ) | 
Maps a syslog facility name from a string to a syslog facility constant.
| facility | Facility name to map (i.e. "daemon") | 
| syslog | facility constant (i.e. LOG_DAEMON) if found | 
| -1 | if facility is not found | 
Definition at line 85 of file syslog.c.
References ARRAY_LEN, facility_map, and name.
Referenced by make_logchannel().
| const char * ast_syslog_facility_name | ( | int | facility | ) | 
Maps a syslog facility constant to a string.
| facility | syslog facility constant to map (i.e. LOG_DAEMON) | 
| facility | name (i.e. "daemon") if found | 
| NULL | if facility is not found | 
Definition at line 98 of file syslog.c.
References ARRAY_LEN, facility_map, NULL, and value.
| int ast_syslog_priority | ( | const char * | priority | ) | 
Maps a syslog priority name from a string to a syslog priority constant.
| priority | Priority name to map (i.e. "notice") | 
| syslog | priority constant (i.e. LOG_NOTICE) if found | 
| -1 | if priority is not found | 
Definition at line 126 of file syslog.c.
References ARRAY_LEN, name, priority, and priority_map.
| int ast_syslog_priority_from_loglevel | ( | int | level | ) | 
Maps an Asterisk log level (i.e. LOG_ERROR) to a syslog priority constant.
| level | Asterisk log level constant (i.e. LOG_ERROR) | 
| syslog | priority constant (i.e. LOG_ERR) if found | 
| -1 | if priority is not found | 
Definition at line 162 of file syslog.c.
References ARRAY_LEN, ASTNUMLOGLEVELS, LOG_NOTICE, and logger_level_to_syslog_map.
Referenced by logger_print_normal().
| const char * ast_syslog_priority_name | ( | int | priority | ) | 
Maps a syslog priority constant to a string.
| priority | syslog priority constant to map (i.e. LOG_NOTICE) | 
| priority | name (i.e. "notice") if found | 
| NULL | if priority is not found | 
Definition at line 139 of file syslog.c.
References ARRAY_LEN, NULL, priority, priority_map, and value.