Class: WAB::Impl::RackError

Inherits:
Object
  • Object
show all
Defined in:
lib/wab/impl/rack_error.rb

Overview

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

Instance Method Summary collapse

Constructor Details

#initialize(shell) ⇒ RackError

Create a new instance.



10
11
12
# File 'lib/wab/impl/rack_error.rb', line 10

def initialize(shell)
  @shell = shell
end

Instance Method Details

#flushObject



22
23
# File 'lib/wab/impl/rack_error.rb', line 22

def flush
end

#puts(message) ⇒ Object



14
15
16
# File 'lib/wab/impl/rack_error.rb', line 14

def puts(message)
  @shell.logger.error(message).to_s
end

#write(message) ⇒ Object



18
19
20
# File 'lib/wab/impl/rack_error.rb', line 18

def write(message)
  @shell.logger.error(message)
end