/python-syslog

A fully RFC5424-compliant Python Syslog Logging Handler

Primary LanguagePython

Python-Syslog

An RFC 5424-complaint Syslog Handler for the Python Logging Framework

Wait, doesn't Python already have a Syslog Handler?

Python has python.logging.handlers.SysLogHandler- however, this is not a full implementation of the Syslog Format (as documented in RFC5424), and leaves the programmer to try and work out the full correct format using a formatter.

Also, Python's SysLogHandler does not handle UTF8 correctly according to the spec. This was reported in Issue 1442 and a fix was applied but that leaves it entirely in the hands of the programmer to correctly format the string.

This project aims to facilitate sending well-formed and correct Syslog messages.