Skip to content
Dead simple Ruby Syslog logger
Branch: master
Clone or download
Latest commit f8584f2 Feb 11, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Add Guard gem Feb 11, 2019
gemfiles Fix #29 Sep 29, 2018
lib Use defined accessor for @Level Sep 29, 2018
spec Fix #29 Sep 29, 2018
.gitignore Fix #29 Sep 29, 2018
.rubocop.yml Coding style Sep 29, 2018
.travis.yml Test with Ruby head Feb 5, 2019
Appraisals Minor change Feb 11, 2019 Add CHANGELOG file Nov 12, 2017
Gemfile Cleanup Gemspec, don't load lib twice May 1, 2017
Guardfile Add Guard gem Feb 11, 2019
LICENSE Update LICENSE file May 1, 2017 Add CHANGELOG file Nov 12, 2017
Rakefile Add Bundler Rake tasks Feb 11, 2019
syslogger.gemspec Add Guard gem Feb 11, 2019


GitHub license GitHub release Gem Gem Build Status

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.


$ gem install syslogger


require 'syslogger'

# Will send all messages to the local0 facility, adding the process id in the message
logger ="app_name", Syslog::LOG_PID, Syslog::LOG_LOCAL0)

# Optionally split messages to the specified number of bytes
logger.max_octets = 480

# Send messages that are at least of the Logger::INFO level
logger.level = Logger::INFO # use Logger levels

logger.debug "will not appear" "will appear"
logger.warn "will appear"




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

You can’t perform that action at this time.