Project

logue

0.0
Low commit activity in last 3 years
A long-lived project that still receives updates
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
2025
2026
 Dependencies

Development

~> 0.1.1
~> 3.0.0
>= 2.0
~> 13.0.1
= 3.6.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