Class: AppLogger::Middleware
- Inherits:
-
Rack::CommonLogger
- Object
- Rack::CommonLogger
- AppLogger::Middleware
- Defined in:
- lib/app_logger/middleware.rb
Instance Attribute Summary collapse
-
#log_level ⇒ Object
readonly
Returns the value of attribute log_level.
Instance Method Summary collapse
-
#initialize(app, options) ⇒ Middleware
constructor
A new instance of Middleware.
Constructor Details
#initialize(app, options) ⇒ Middleware
Returns a new instance of Middleware.
8 9 10 11 |
# File 'lib/app_logger/middleware.rb', line 8 def initialize(app, ) super(app, [:logger]) @log_level = [:log_level] || Logger::INFO end |
Instance Attribute Details
#log_level ⇒ Object (readonly)
Returns the value of attribute log_level.
6 7 8 |
# File 'lib/app_logger/middleware.rb', line 6 def log_level @log_level end |