class WAB::Impl::RackError

The RackError class is a logger that is used in the Rack env in a request. It uses the shell logger to log errors.

Public Class Methods

new(shell) click to toggle source

Create a new instance.

# File lib/wab/impl/rack_error.rb, line 10
def initialize(shell)
  @shell = shell
end

Public Instance Methods

flush() click to toggle source
# File lib/wab/impl/rack_error.rb, line 22
def flush
end
puts(message) click to toggle source
# File lib/wab/impl/rack_error.rb, line 14
def puts(message)
  @shell.logger.error(message).to_s
end
write(message) click to toggle source
# File lib/wab/impl/rack_error.rb, line 18
def write(message)
  @shell.logger.error(message)
end