Simple Logger
Including this module equips your object with class- and instance-level references to a logger that uses intelligent defaults. If no logger is present, we look for the Rails default logger (Rails.logger). If all else fails, the code instantiates a new logger pointed at STDOUT.
Usage
require ‘simple_logger’
class Foo include SimpleLogger end
>> f = Foo.new
=> #
Patches
Accepted via GitHub.
Author
Written by Mike Subelsky ([email protected]).
Warranty
No warranty whatsoever. But please enjoy!
Copyright
Copyright © 2009 Capital Thought (http://capitalthought.com), released under the MIT license.