Sha256: 3c22c1f0cf477f70adfbd567c6349243d4b91c88b5f61879aae141901943a1cf
Contents?: true
Size: 1.14 KB
Versions: 2
Compression:
Stored size: 1.14 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. == 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 +bundler+: $ gem install bundler * Install development dependencies: $ bundle install * Run tests: $ bundle exec rake * Package (do not forget to increment <tt>Syslogger:VERSION</tt>): $ gem build syslogger.gemspec == Contributions * crhym3 * theflow * smulube == Copyright Copyright (c) 2010 Cyril, INRIA Rennes-Bretagne Atlantique. See LICENSE for details.
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
le1t0-syslogger-1.2.4.002 | README.rdoc |
le1t0-syslogger-1.2.4.001 | README.rdoc |