Sha256: 55174b785290063ee2c6c73474306ceb858050bfafc35745336ba626c7f83602

Contents?: true

Size: 838 Bytes

Versions: 1

Compression:

Stored size: 838 Bytes

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.

== 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"

== Fork

  This fork was made to create a drop in replacement for ruby's Logger.

== Copyright

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
scashin133-syslogger-1.3.2 README.rdoc