Closed emmanuel closed 9 years ago
Oops. My initial push was a broken version. I'm hoping Travis CI picks up the change despite it being a forced push... if not I suppose I'll create another pull request.
Thanks for the request Can you improve a bit the test? To assert that the error and size is properly delivered to the handler?
@mcuadros – just pushed updates to server_test.go
to verify the size and error are delivered to the Handler. Also, I fixed the breakage I introduced into handler_test.go
:frowning:.
Thx
I'm updating otoolep/syslog-gollector to use mcuadros/go-syslog (and thus jeromer/syslogparser) in lieu of the current regex-based parser and TCP/UDP server implementation. One of the things I quite like about
syslog-gollector
is the stats (usinggo-metrics
): messages received, bytes received, num messages successfully parsed and num messages that failed to parse.AFAICT, in order to collect those stats, my best options is to get 1) info at the
Handler
interface. Either that, or 2) I would need to instrument deeper withinmcuadros/go-syslog
, which seems less good™. This pull request represents my attempt at implementing 1.