Module Expr Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Import alias ClassDef bases body FunctionDef arguments args NameParam NameParam defaults Str body Assign AttributeStore NameLoad attr NameLoad If CompareEq Call NameLoad NameLoad Call NameLoad Str body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Num orelse Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num decorator_list Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore BinOpMod AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq Call NameLoad NameLoad Call NameLoad Str body Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareEq Call NameLoad NameLoad Call NameLoad Str body Assign NameStore SubscriptLoad NameLoad Index NameLoad Return BinOpBitOr BinOpLShift NameLoad Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list
N/A N/A socket interface to unix syslog.
On Unix, there are usually two ways of getting to syslog: via a
local unix-domain socket, or via the TCP service.

Usually "/dev/log" is the unix domain socket.  This may be different
for other systems.

>>> my_client = syslog_client ('/dev/log')

Otherwise, just use the UDP version, port 514.

>>> my_client = syslog_client (('my_log_host', 514))

On win32, you will have to use the UDP version.  Note that
you can use this to log to other hosts (and indeed, multiple
hosts).

This module is not a drop-in replacement for the python
<syslog> extension module - the interface is different.

Usage:

>>> c = syslog_client()
>>> c = syslog_client ('/strange/non_standard_log_location')
>>> c = syslog_client (('other_host.com', 514))
>>> c.log ('testing', facility='local0', priority='debug')

 N/A LOG_EMERG 0 N/A LOG_ALERT 1 N/A LOG_CRIT 2 N/A LOG_ERR 3 N/A LOG_WARNING 4 N/A LOG_NOTICE 5 N/A LOG_INFO 6 N/A LOG_DEBUG 7 N/A LOG_KERN 0 N/A LOG_USER 1 N/A LOG_MAIL 2 N/A LOG_DAEMON 3 N/A LOG_AUTH 4 N/A LOG_SYSLOG 5 N/A LOG_LPR 6 N/A LOG_NEWS 7 N/A LOG_UUCP 8 N/A LOG_CRON 9 N/A LOG_AUTHPRIV 10 N/A LOG_LOCAL0 16 N/A LOG_LOCAL1 17 N/A LOG_LOCAL2 18 N/A LOG_LOCAL3 19 N/A LOG_LOCAL4 20 N/A LOG_LOCAL5 21 N/A LOG_LOCAL6 22 N/A LOG_LOCAL7 23 N/A priority_names N/A alert crit debug emerg err error info notice panic warn warning LOG_ALERT LOG_CRIT LOG_DEBUG LOG_EMERG LOG_ERR LOG_ERR LOG_INFO LOG_NOTICE LOG_EMERG LOG_WARNING LOG_WARNING N/A facility_names N/A auth authpriv cron daemon kern lpr mail news security syslog user uucp local0 local1 local2 local3 local4 local5 local6 local7 LOG_AUTH LOG_AUTHPRIV LOG_CRON LOG_DAEMON LOG_KERN LOG_LPR LOG_MAIL LOG_NEWS LOG_AUTH LOG_SYSLOG LOG_USER LOG_UUCP LOG_LOCAL0 LOG_LOCAL1 LOG_LOCAL2 LOG_LOCAL3 LOG_LOCAL4 LOG_LOCAL5 LOG_LOCAL6 LOG_LOCAL7 N/A socket syslog_client N/A N/A __init__ N/A N/A self address N/A /dev/log N/A N/A N/A self address address N/A N/A N/A type address N/A type N/A N/A N/A self socket N/A N/A socket socket N/A socket AF_UNIX N/A socket SOCK_STREAM N/A N/A N/A N/A self socket connect address N/A N/A self unix 1 N/A N/A N/A self socket N/A N/A socket socket N/A socket AF_INET N/A socket SOCK_DGRAM N/A N/A self unix 0 N/A N/A log_format_string <%d>%s log N/A N/A self message facility priority N/A LOG_USER LOG_INFO N/A N/A message N/A N/A self log_format_string N/A N/A N/A self encode_priority facility priority message N/A N/A self unix N/A N/A N/A N/A N/A self socket send message N/A N/A N/A N/A N/A self socket sendto message N/A self address N/A encode_priority N/A N/A self facility priority N/A N/A N/A N/A N/A type facility N/A type N/A N/A facility N/A facility_names N/A facility N/A N/A N/A type priority N/A type N/A N/A priority N/A priority_names N/A priority N/A N/A N/A facility 3 priority N/A close N/A N/A self N/A N/A N/A N/A self unix N/A N/A N/A N/A N/A self socket close N/A N/A