Skip to content

configurable implementation #4

@ngauthier

Description

@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.

#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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions