logging package for rfc5424 syslog formatted messages

232 views
Skip to first unread message

jal...@gmail.com

unread,
Oct 31, 2021, 10:43:13 AM10/31/21
to golang-nuts
Hi all,

I suspect that my google foo has failed me but I haven't be able to find quite what I am looking for. I am looking for logging package package that tightly integrates with rfc5424.

1. make it easy to construct messages that conform rfc5424
2. emits those messages to io.Writer (e.g os.Stdout)
3. supports log levels (nice to have)
4. light weight - I want this logging library to *only* do that. I am not interested in something like logrus even if could be made to work.

I did find packages like this


And I could certainly create an io.Writer and pass that to both logger.New and the third party library that does syslog message construction. But I find the API a little awkward. I searching for something more ergonomic. If nothing like this exists, I'll just roll my own but I assumed I'd be re-inventing the wheel and would prefer not to if such a wheel already exists.

Thanks,
Joe
Reply all
Reply to author
Forward
0 new messages