RubyGems.org

loggability

0.3.0

A composable logging system built on the standard Logger library. You can add Loggability to large libraries and systems, then hook everything up later when you know where you want logs to be written, at what level of severity, and in which format. An example: # Load a bunch of libraries that use Loggability require 'strelka' require 'inversion' require 'treequel' require 'loggability' # Set up our own library module MyProject extend Loggability log_as :my_project class Server extend Loggability log_to :my_project def initialize self.log.debug "Listening." end end end # Now tell everything that's using Loggability to log to an HTML # log file at INFO level Loggability.write_to( '/usr/local/www/htdocs/log.html' ) Loggability.format_as( :html ) Loggability.level = :info

installgem install loggability -v 0.3.0
Authors

Michael Granger

11,092 total downloads 476 for this version
Owners

04cdb622ce0aac272b61f23f373e2abf

Gemfile
gem "loggability", "~> 0.3.0"
Versions
  1. 0.6.0 March 15, 2013
  2. 0.5.0 August 3, 2012
  3. 0.4.0 June 7, 2012
  4. 0.3.0 May 26, 2012
  5. 0.2.3 May 19, 2012
Show all versions (11 total)
Runtime Dependencies
  1. pluginfactory ~> 1.0