class Syslog():
consumer that writes to the syslog daemon
class attributes and properties:
LOG_ALERT: 1
LOG_CRIT: 2
LOG_DEBUG: 7
LOG_EMERG: 0
LOG_ERR: 3
LOG_INFO: 6
LOG_NOTICE: 5
LOG_WARNING: 4
priority: LOG_DEBUG
methods:
def __init__(self, priority=None):
*no docstring available*
arguments:
- self: <UNKNOWN>
- priority: <UNKNOWN>
return value:
<UNKNOWN>
source: log/consumer.py
|
def __init__(self, priority = None): |
self.priority = self.LOG_INFO |
if priority is not None: |
self.priority = priority | |
def __call__(self, msg):
write a message to the log
arguments:
- self: <UNKNOWN>
- msg: <UNKNOWN>
return value:
<UNKNOWN>
source: log/consumer.py
|
def __call__(self, msg): |
""" write a message to the log """ |
py.std.syslog.syslog(self.priority, str(msg)) | |