Skip to content

Additional adapters syslog

rudionrails edited this page Apr 3, 2012 · 2 revisions

Syslog Adapter

The Syslog adapter for Yell is available as separate gem.

Installation

System wide:

gem install yell-adapters-syslog

Or in your Gemfile:

gem "yell-adapters-syslog"

Since the yell is a gem dependency, it will be installed automatically with it.

Usage

logger = Yell.new :syslog

logger.info "Hello World"
# Check your syslog for the received message.

Or alternatively with the block syntax:

logger = Yell.new do |l|
  l.adapter :syslog
end

logger.info 'Hello World!'

TODO Further examples will be available soon