Update rfc3164 to accept custom timestamp formats.#5
Update rfc3164 to accept custom timestamp formats.#5emmanuel wants to merge 1 commit intojeromer:masterfrom
Conversation
This is in violation of the RFC itself, but allows syslogparser to parse output from Golang’s own log/syslog package.
|
My goal is to parse the output from the go stdlib Go's AFAICT, this violates the assumptions of the @jeromer, do you have any thoughts about how this might be accomplished (using In my case I'm receiving messages with timestamps only in UTC, so my approach today is to use a timestamp format with the optional timezone offset omitted. However, I'd rather not worry about the day I start seeing messages with mixed timezones 😄. Specifically, I'm using "2006-01-02T15:04:05Z" instead of "2006-01-02T15:04:05Z07:00", which is the value of |
This is in violation of the RFC itself, but allows
syslogparser to parse output from Golang’s own
log/syslog package.