Class: Captivity::LoggerWithWriteMethod
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Captivity::LoggerWithWriteMethod
- Defined in:
- lib/captivity.rb
Overview
Rack::CommonLogger is so ingeniously put together that it does not honor the standard logger levels, it uses #write. The #write method is not even defined on the standard Logger, so we flee to a delegate which will convert the logs to info messages
Instance Method Summary collapse
Instance Method Details
#write(str) ⇒ Object
14 15 16 |
# File 'lib/captivity.rb', line 14 def write(str) info(str) end |