Logger
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
Conventions
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).
Authors
- George Moschovitis
- TransLogarithim
Copying
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.
Required Files
- logger
- time
- facets/ansicode