title: How can you send structured-data to syslog from Twisted?
body: <p>I am trying to send structured-data as defined in <a href="https://www.rfc-editor.org/rfc/rfc5424" rel="nofollow noreferrer">RFC5424</a> to syslog from Twisted.
  I'm on Ubuntu and the syslog implementation is rsyslog.</p>
  <p>I'm running the twisted app with '<code>twistd --syslog</code>', which sends messages sent with log.msg and log.err to syslog.</p>
  <p>So far I have been trying to format the message in log.msg according to the spec, like this e.g.:</p>
  <pre><code>log.err('[exampleSDID@32473 iut=&quot;3&quot; eventSource=&quot;Application&quot; eventID=&quot;1011&quot;]')
  </code></pre>
  <p>But that does not work. Rsyslog just displays it as a regular message.
  Does anybody know how to do this?
  Should I look at a different logging library maybe?</p>