Class: Roqua::Support::RequestLogger
- Inherits:
-
ActiveSupport::LogSubscriber
- Object
- ActiveSupport::LogSubscriber
- Roqua::Support::RequestLogger
show all
- Includes:
- Instrumentation
- Defined in:
- lib/roqua/support/request_logger.rb
Instance Method Summary
collapse
#eventlog, #with_instrumentation
Instance Method Details
#process_action(event) ⇒ Object
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# File 'lib/roqua/support/request_logger.rb', line 16
def process_action(event)
payload = event.payload
= Thread.current[:roqua_request_log] || {}
Thread.current[:roqua_request_log] = {}
data = (event)
data.merge! (payload)
data.merge! (payload)
data.merge! (payload)
data.merge! redirect_information
data.merge!
data.merge! runtimes(event)
eventlog.info "web", data
rescue Exception => e
eventlog.info "web:logerror", {class: e.class, message: e.message}
raise
end
|
#redirect_to(event) ⇒ Object
36
37
38
39
40
41
42
43
|
# File 'lib/roqua/support/request_logger.rb', line 36
def redirect_to(event)
Thread.current[:roqua_request_log_redirect] = event.payload[:location]
end
|