Sha256: d9ecf549057944219a45ea5aaa7b6db404e75c704f2961c34f72c5a50dbf0f11

Contents?: true

Size: 1.35 KB

Versions: 1

Compression:

Stored size: 1.35 KB

Contents

= syslogger

A drop-in replacement for the standard Logger Ruby library, that logs to the
syslog instead of a log file. Contrary to the SyslogLogger library, you can
specify the facility and the syslog options.

{<img src="https://secure.travis-ci.org/crohr/syslogger.png?branch=master" alt="Build Status" />}[http://travis-ci.org/crohr/syslogger]

== Installation

  $ gem install syslogger

== Usage

  require 'syslogger'
  
  # Will send all messages to the local0 facility, adding the process id in the message
  logger = Syslogger.new("app_name", Syslog::LOG_PID, Syslog::LOG_LOCAL0)
  
  # Send messages that are at least of the Logger::INFO level
  logger.level = Logger::INFO # use Logger levels
  
  logger.debug "will not appear"
  logger.info "will appear"
  logger.warn "will appear"

Documentation available at <http://rdoc.info/github/crohr/syslogger/master/file/README.rdoc>.

== Development

* Install development dependencies:

    $ gem install bundler
    $ bundle install

* Run tests:

    $ rake spec

* Package (do not forget to increment <tt>Syslogger:VERSION</tt>):

    $ gem build syslogger.gemspec

== Changelog

See <https://github.com/crohr/syslogger/commits/master>.

== Contributions

See <https://github.com/crohr/syslogger/contributors>.

== Copyright

Copyright (c) 2010 Cyril Rohr, INRIA Rennes-Bretagne Atlantique. See LICENSE for details.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
syslogger-1.4.1 README.rdoc