Syslogger - A Log::Backend that writes to syslog.
Add the dependency to your
dependencies: syslogger: version: 0.1.0 github: lazau/syslogger
require "log" require "syslogger" Log.setup_from_env(backend: Log::SyslogBackend.new)
Syslog is a process wide resource in Linux and FreeBSD see
OpenBSD allows reentrant syslogging, but Log::SyslogBackend doesn't currently support it.
As of version 0.1.0, only a single Log::SyslogBackend is supported per process. Multiple instantiations
result in undefined behavior. Writting to the SyslogBackend from different fibers result in undefined behavior.
- Fork it (https://github.com/lazau/syslogger/fork)
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create a new Pull Request