I'm using Python 3.7. I want to log to a remote rsyslog server using RFC-5424 over UDP. The problem is, logging.handlers.SysLogHandler is producing what looks like the old RFC-3164 format:
<14>2022-05-29 14:40:08,746 [none] INFO spi.views.foo: hello
I see a couple of third-party packages (rfc5424-logging-handler and syslog-rfc5424-formatter) that generate 5424 format but given that RFC-5424 has been around for 13 years, it is surprising that there's no native way to do this. Am I missing something obvious, or do I really need to load an external package?