melito/em-syslog — Issue #4: configurable implementation
Author: ngauthier
Created: 2011-12-12 21:33:32+00:00
State: open

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.

```ruby
# 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