[ANN} log_buddy 0.0.2 released

R

Rob Sanheim

## DESCRIPTION:
log_buddy is your friendly little log buddy at your side, helping you
dev, debug, and test.

## 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:

Changes:

### 0.0.2
* rdocs
* support for multiple statements in one "d" call separated by semicolons


thanks,
Rob

http://robsanheim.com
http://thinkrelevance.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,077
Latest member
SangMoor21

Latest Threads

Top