lib/glue/logger.rb in og-0.8.0 vs lib/glue/logger.rb in og-0.9.3

- old
+ new

@@ -1,18 +1,14 @@ -# code: # * George Moschovitis <gm@navel.gr> -# -# (c) 2004 Navel, all rights reserved. -# $Id: logger.rb 161 2004-11-18 10:51:51Z gmosx $ +# (c) 2004-2005 Navel, all rights reserved. +# $Id: logger.rb 248 2005-01-31 13:38:34Z gmosx $ require 'logger' -# = Logger -# # A simple wrapper arround the Ruby logger. Mainly for # compatibility purposes. -# + class Logger alias_method :devel, :debug alias_method :fine, :debug # Prints a trace message to DEBUGLOG (at debug level). @@ -40,10 +36,10 @@ # # CREDITS: # # This code comes straight from the dev-utils Gem. # Author: Gavin Sinclair <gsinclair@soyabean.com.au> - # + def trace(expr, style=:p) unless expr.respond_to? :to_str warn "trace: Can't evaluate the given value: #{caller.first}" else require 'extensions/binding'