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:

Gemfile:
= 复制到剪贴板 已复制!

安装:
=

版本列表:

  1. 0.7.0 - April 20, 2012 (11.0 KB)
  2. 0.6.0 - December 06, 2010 (11.5 KB)
  3. 0.5.0 - May 28, 2010 (11.0 KB)
  4. 0.4.12 - October 09, 2009 (11.5 KB)
  5. 0.4.10 - April 20, 2009* (10.0 KB)
  6. 0.0.2 - April 04, 2008* (8.0 KB)
显示所有版本 (共 15 个)

Runtime 依赖 (1):

hoe >= 1.5.1

业主:

作者:

  • Rob Sanheim - Relevance

SHA 256 校验和:

57f1cf1400d4d8f6847ce14afbdd1245bbe24d1b655d9f8fbbd93b66b95f6c1d

下载总量 290,027

这个版本 3,664

许可:

需要的 Ruby 版本:

链接: