Exscript.util.syslog module

Send messages to a syslog server.

Exscript.util.syslog.netlog(message, source=None, host='localhost', port=514, priority=7, facility=8)[source]

Python’s built in syslog module does not support networking, so this is the alternative. The source argument specifies the message source that is documented on the receiving server. It defaults to “scriptname[pid]”, where “scriptname” is sys.argv[0], and pid is the current process id. The priority and facility arguments are equivalent to those of Python’s built in syslog module.

Parameters:
  • source (str) – The source address.
  • host (str) – The IP address or hostname of the receiving server.
  • port (str) – The TCP port number of the receiving server.
  • priority (int) – The message priority.
  • facility (int) – The message facility.