Parent

Wait::BaseLogger

Attributes

logger[R]

Public Class Methods

new() click to toggle source
# File lib/loggers/base.rb, line 12
def initialize
  @logger           = ::Logger.new(STDOUT)
  @logger.level     = level
  @logger.formatter = formatter
end

Public Instance Methods

formatter() click to toggle source
# 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
level() click to toggle source
# File lib/loggers/base.rb, line 18
def level
  ::Logger::WARN
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.