Sha256: 7357ae42d53d6dfece78d5e73cd14ac6bae6c17fd6abf653291d3ea4a82ebb28
Contents?: true
Size: 1.02 KB
Versions: 4
Compression:
Stored size: 1.02 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" == 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 == Copyright Copyright (c) 2010 Cyril, INRIA Rennes-Bretagne Atlantique. See LICENSE for details.
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
syslogger-1.2.3 | README.rdoc |
syslogger-1.2.2 | README.rdoc |
syslogger-alex-1.2.2 | README.rdoc |
syslogger-1.2.1 | README.rdoc |