Class: WAB::Impl::RackError
- Inherits:
-
Object
- Object
- WAB::Impl::RackError
- 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
- #flush ⇒ Object
-
#initialize(shell) ⇒ RackError
constructor
Create a new instance.
- #puts(message) ⇒ Object
- #write(message) ⇒ Object
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
#flush ⇒ Object
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() @shell.logger.error().to_s end |
#write(message) ⇒ Object
18 19 20 |
# File 'lib/wab/impl/rack_error.rb', line 18 def write() @shell.logger.error() end |