Project

logue

0.0
No release in over 3 years
Low commit activity in last 3 years
A module that adds logging/trace functionality.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
~> 0.1.1
~> 3.0.0
~> 10.0
~> 3.1
 Project Readme

logue

A Ruby gem for generating logging and debugging output. Logging statements include the file, line, class and method from which the logging method was called.

EXAMPLES

require 'logue/log'
require 'logue/loggable'

Logue::Log.level = Logue::Log::DEBUG

class MyClass
  include Logue::Loggable

  def mymethod foo
    info "foo: #{foo}"
  end
end

obj = MyClass.new
obj.mymethod "bar"

Produces:

[/tmp/foo.rb              :  13] {MyClass#mymethod    } foo: bar