metamoof / python-syslog

A fully RFC5424-compliant Python Syslog Logging Handler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A fully RFC5424-compliant Python Syslog Logging Handler


Languages

Language:Python 80.2%Language:Shell 19.8%