RubyGems Navigation menu

log_buddy 0.0.2

SYNOPSIS: Call LogBuddy.init to use log_buddy. It will add two methods to object instance and class level: "d" and "logger". You can use your own logger with Logbuddy by passing it into init's options hash: LogBuddy.init :default_logger => Logger.new('my_log.log') Now you have your logger available from any object, at the instance level and class level: obj = Object.new obj.logger.debug("hi") class MyClass; end MyClass.logger.info("heya") You also have a method called "d" (for "debug") on any object, which is used for quick debugging and logging of things while you are developing. Its especially useful while using autotest. When you call the "d" method with an inline block, it will log the name of the things in the block and the result. Examples:

Versions:

  1. 0.7.0 - April 20, 2012 (11 KB)
  2. 0.6.0 - December 6, 2010 (11.5 KB)
  3. 0.5.0 - May 28, 2010 (11 KB)
  4. 0.4.12 - May 22, 2009 (11.5 KB)
  5. 0.4.10 - April 20, 2009 (10 KB)
Show all versions (15 total)

Runtime Dependencies:

Authors:

  • Rob Sanheim - Relevance

Owners:

7ce90d712fab09421b7f2cf955b9a4c86384076117c2d2c558438bc8f204680f64d558586b5374ed4087454b64fb76cfD804937657b6c7d859018914dc35ef3a1d3c55b4d77f6ce50953e9e39c59ec99E67e1adc50b2642a81e4675ee91ba71e1166e954c5c9a2e19fb557cd619deb0cDc409a32dfcb23fa5aa3127a9087c8af0d2ce6276023960b5be702ca1aa0bc48Df5e7adb20adae6c120b04e7cafb15a01a92c9bb3a4983dfccac37cf2f636e05F640d65be554f8793127091753b042418f0660cdc9f5d91c7d97456f8f0be8c7

Total downloads 62,004

For this version 1,436

Show all versions (15 total)

Required Ruby Version: None

Licenses:

N/A

Gemfile:
gem 'log_buddy', '~> 0.0.2' = Copy to clipboard Copied!

install:
gem install log_buddy -v 0.0.2 = Copy to clipboard Copied!

Links: