Trees | Indices | Help |
|
---|
|
Filterer --+ | Handler --+ | SysLogHandler
A handler class which sends formatted logging records to a syslog server. Based on Sam Rushing's syslog module: http://www.nightmare.com/squirl/python-ext/misc/syslog.py Contributed by Nicolas Untz (after which minor refactoring changes have been made).
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
LOG_EMERG = 0
|
|||
LOG_ALERT = 1
|
|||
LOG_CRIT = 2
|
|||
LOG_ERR = 3
|
|||
LOG_WARNING = 4
|
|||
LOG_NOTICE = 5
|
|||
LOG_INFO = 6
|
|||
LOG_DEBUG = 7
|
|||
LOG_KERN = 0
|
|||
LOG_USER = 1
|
|||
LOG_MAIL = 2
|
|||
LOG_DAEMON = 3
|
|||
LOG_AUTH = 4
|
|||
LOG_SYSLOG = 5
|
|||
LOG_LPR = 6
|
|||
LOG_NEWS = 7
|
|||
LOG_UUCP = 8
|
|||
LOG_CRON = 9
|
|||
LOG_AUTHPRIV = 10
|
|||
LOG_LOCAL0 = 16
|
|||
LOG_LOCAL1 = 17
|
|||
LOG_LOCAL2 = 18
|
|||
LOG_LOCAL3 = 19
|
|||
LOG_LOCAL4 = 20
|
|||
LOG_LOCAL5 = 21
|
|||
LOG_LOCAL6 = 22
|
|||
LOG_LOCAL7 = 23
|
|||
priority_names =
|
|||
facility_names =
|
|||
priority_map =
|
|||
log_format_string =
|
|
Initialize a handler. If address is specified as a string, UNIX socket is used. If facility is not specified, LOG_USER is used.
|
Encode the facility and priority. You can pass in strings or integers - if strings are passed, the facility_names and priority_names mapping dictionaries are used to convert them to integers. |
Closes the socket.
|
Map a logging level name to a key in the priority_names map. This is useful in two scenarios: when custom levels are being used, and in the case where you can't do a straightforward mapping by lowercasing the logging level name because of locale- specific issues (see SF #1524081). |
Emit a record. The record is formatted, and then sent to the syslog server. If exception information is present, it is NOT sent to the server.
|
|
priority_names
|
facility_names
|
priority_map
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jun 13 23:38:44 2008 | http://epydoc.sourceforge.net |