Path: | lib/lore/facets/logger.rb |
Last Update: | Tue Jul 28 14:53:51 -0400 2009 |
Extended variation of Ruby‘s standard Logger library.
log = Logger.new log.setup_format do |severity, timestamp, progname, msg| Logger::SIMPLE_FORMAT % [severity, msg] end
When using debug level logger messages always append ‘if $DBG’ at the end. This hack is needed because Ruby does not support lazy evaluation (lisp macros).
Copyright (c) 2005 George Moschovitis
Ruby License
This module is free software. You may use, modify, and/or redistribute this software under the same terms as Ruby.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.