Sha256: 403457d91fdf379f518d77adcda369ae779b82e5459e3ee0881bf88911741f77
Contents?: true
Size: 921 Bytes
Versions: 1
Compression:
Stored size: 921 Bytes
Contents
# = Logger # # A simple wrapper arround the Ruby logger. Mainly for compatibility # purposes. # # code: # * George Moschovitis <gm@navel.gr> # # (c) 2004 Navel, all rights reserved. # $Id: logger.rb 109 2004-10-27 09:12:45Z 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 def detach end # Used for debuging, remove this in release code. # def d(str) self << "#{str}\n" end # Inspect an object. Used for debugging, remove this in release # code. # def i(obj) self << "Inspect #{obj.inspect()}\n" end private # the default Ruby logger has a hardwired silly format. # we use some Ruby magic to fix it! remove_const "Format" Format = "%c: %s\n" def format_message(severity, timestamp, msg, progname) Format % [severity[0], msg] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.3.0 | lib/n/logger.rb |