Geal / rust-syslog

Send syslog messages from Rust
MIT License
109 stars 55 forks source link

RFC5424 specifies MSGID as a string (not a number) #74

Open ChezBunch opened 1 year ago

ChezBunch commented 1 year ago

The RFC5424 LogFormat implementation expects a u32 message_id, but the RFC5424 specifies MSGID as a string. From https://datatracker.ietf.org/doc/html/rfc5424:

      MSGID           = NILVALUE / 1*32PRINTUSASCII
...
      PRINTUSASCII    = %d33-126
...
      NILVALUE        = "-"

I don't know if it's possible to change the type of message_id to a string while retaining compatibility with u32.