Class: Cuprum::Rails::Actions::Middleware::LogRequest
- Inherits:
-
Command
- Object
- Command
- Cuprum::Rails::Actions::Middleware::LogRequest
- Includes:
- Middleware
- Defined in:
- lib/cuprum/rails/actions/middleware/log_request.rb
Overview
Configurable middleware for logging controller requests.
Instance Attribute Summary collapse
-
#config ⇒ Hash
readonly
Request and environment properties to log.
Instance Method Summary collapse
-
#initialize(**config) ⇒ LogRequest
constructor
A new instance of LogRequest.
Constructor Details
#initialize(**config) ⇒ LogRequest
Returns a new instance of LogRequest.
62 63 64 65 66 |
# File 'lib/cuprum/rails/actions/middleware/log_request.rb', line 62 def initialize(**config) super() @config = DEFAULT_CONFIGURATION.merge(config) end |
Instance Attribute Details
#config ⇒ Hash (readonly)
Returns request and environment properties to log.
69 70 71 |
# File 'lib/cuprum/rails/actions/middleware/log_request.rb', line 69 def config @config end |