PyDocs

Nav

Generic Operating System Services

SysLogHandler

  • SysLogHandler(address=('localhost', SYSLOG_UDP_PORT), facility=LOG_USER, socktype=socket.SOCK_DGRAM, timeout=None)
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).
Changed in 3.2, 3.14
  • 3.2: socktype was added.
  • 3.14: timeout was added.
Members of SysLogHandler

c

close
Closes the socket.
createSocket
Try to create a socket and, if it's not a datagram socket, connect it to the other end.

e

emit
Emit a record.
encodePriority
Encode the facility and priority.

m

mapPriority
Map a logging level name to a key in the priority_names map.
0 Examples
No examples for logging.handlers/SysLogHandler.
See Also
No see-alsos for logging.handlers/SysLogHandler
0 Notes
No notes for SysLogHandler