Class: Superlogger::ActionViewLogSubscriber
- Inherits:
-
ActiveSupport::LogSubscriber
- Object
- ActiveSupport::LogSubscriber
- Superlogger::ActionViewLogSubscriber
- Defined in:
- lib/superlogger/action_view_log_subscriber.rb
Instance Method Summary collapse
- #render_template(event) ⇒ Object (also: #render_partial, #render_collection)
Instance Method Details
#render_template(event) ⇒ Object Also known as: render_partial, render_collection
3 4 5 6 7 |
# File 'lib/superlogger/action_view_log_subscriber.rb', line 3 def render_template(event) payload = event.payload logger.debug {{ view: payload[:identifier].split('/').last, duration: event.duration.round(2) }} end |