Open faultyserver opened 7 years ago
That looks pretty helpful. I don't anticipate this would pose any issues regarding logging with systemd like we are doing now, since shark logs to stdout.
It turns out that Ruby has a core library for syslogs. That might be more simple to start with, but the docs don't make it look very easy to use.
RFC 5424 defines the
syslog
logging format, which helps create more searchable and analyzable logs.The
syslogger
gem is a Ruby Logger that outputs logs according to this format.It'd be nice to log each event from Shark in this format. More than just making the logs more searchable, it also helps group multi-line output from one event into a single record, which could greatly help with debugging with live data.
That said, I don't know how well this will work with the rotating log system we currently have in production.