Thanks for this gem! We used your encoding format as the basis for this implementation of the protocol:
https://gist.github.com/1469208
I thought you might like to use it. The best part is that the usage is much simpler, and since there are no class variables you can instantiate multiple loggers.
#11 is the facility code for an FTP daemon
#514 is the default UDP port for SYSLOG
syslog = EM::Protocols::Syslog2.connect('localhost', 514, 11)
# later ...
syslog.info "Hello world"
syslog.error "Goodbye world :-("
The gist also includes a test against a fake syslog to ensure functionality.
xoxo @ngauthier
Thanks for this gem! We used your encoding format as the basis for this implementation of the protocol:
https://gist.github.com/1469208
I thought you might like to use it. The best part is that the usage is much simpler, and since there are no class variables you can instantiate multiple loggers.
The gist also includes a test against a fake syslog to ensure functionality.
xoxo @ngauthier