0.0
No commit activity in last 3 years
No release in over 3 years
A really simple syslogging utility based on syslogger gem
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.6
>= 0
 Project Readme

Simplesyslogger

A really simple syslogging utility based on syslogger gem

Installation

Add this line to your application's Gemfile:

gem 'simplesyslogger'

And then execute:

$ bundle

Or install it yourself as:

$ gem install simplesyslogger

Usage

Example usage in sinatra:

configure do log = SimpleSysLogger::SysLogger.new({ :ident => "MY_COOL_APPNAME", :level => Logger::DEBUG #TODO:// # logging level - i.e. send messages that are at least of the Logger::INFO level - not fully implemented yet })

log.level = ENV['RACK_ENV'] == 'production' ? Logger::INFO : Logger::DEBUG

end

settings.logger.info "app is up and running"

TODO:

Add some unit tests (RSpec, Travis, Coveralls, etc)

Contributing

  1. Fork it ( https://github.com/[my-github-username]/simplesyslogger/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request