log_buddy Released - your helpful little dev buddy

LogBuddy is your friendly little log buddy at your side, helping you dev, debug, and test. It plays well with Rails and plain old Ruby projects. To use it, sudo gem install log_buddy, then require 'log_buddy' and call LogBuddy.init. It will add two methods to object instance and class level: "d" and "logger". You probably only want to use it in non-production environments.

Examples

[ruby] require 'lib/log_buddy' LogBuddy.init

a = "foo" @a = "my var" @@bar = "class var!" def bark "woof!" end

module Foo; def self.module_method

"hi!!"

end end

d { a } # logs "a = 'foo'" d { @a } # logs "@a = 'my var'" d { @@bar } # logs "@@bar = 'class var!'" d { bark } # logs "bark = woof!" d { Foo::module_method } # logs Foo::module_method = 'hi!!' [/ruby]

More Details

Back to the front page