Object
# File lib/loggers/base.rb, line 12 def initialize @logger = ::Logger.new(STDOUT) @logger.level = level @logger.formatter = formatter end
# File lib/loggers/base.rb, line 22 def formatter proc do |severity, datetime, caller, message| "#{severity.ljust(5)} #{"[#{caller}]".ljust(9)} #{message}\n" end end
# File lib/loggers/base.rb, line 18 def level ::Logger::WARN end
[Validate]
Generated with the Darkfish Rdoc Generator 2.