Class: RailsTracepointStack::Sink::Log

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_tracepoint_stack/sink/log.rb

Overview

Formats each trace and writes it out, which is what the gem has always done. Kept as the default so enabling the tracer globally behaves the same as before sinks existed.

Instance Method Summary collapse

Instance Method Details

#record(trace) ⇒ Object



10
11
12
13
14
# File 'lib/rails_tracepoint_stack/sink/log.rb', line 10

def record(trace)
  RailsTracepointStack::Logger.log(
    RailsTracepointStack::LogFormatter.message(trace)
  )
end