Class: TraceViz::Formatters::Log::MethodCallFormatter

Inherits:
VerboseFormatter show all
Includes:
Helpers::Log::ParamsHelper, Helpers::Log::ResultHelper
Defined in:
lib/trace_viz/formatters/log/method_call_formatter.rb

Instance Method Summary collapse

Methods included from Helpers::Log::ParamsHelper

#format_params

Methods included from Helpers::Log::MethodNameHelper

#format_method_name

Methods included from Helpers::Log::DepthHelper

#format_depth

Methods included from Helpers::Log::ColorHelper

#colorize, #colorize_for

Methods included from Helpers::MethodDetailsHelper

#method_name_representation

Methods included from Helpers::ResultHelper

#result_representation

Methods included from Helpers::SourceHelper

#source_location_representation

Methods included from Helpers::ParamsHelper

#params_representation

Methods included from Helpers::TimeHelper

#execution_time_representation

Methods included from Helpers::DepthHelper

#depth_representation

Methods included from Helpers::IndentHelper

#indent_representation

Instance Method Details

#call(trace_data) ⇒ Object



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/trace_viz/formatters/log/method_call_formatter.rb', line 12

def call(trace_data)
  [
    indent_representation(trace_data),
    format_depth(trace_data, config),
    format_method_name(trace_data, config),
    colorize_for(source_location_representation(trace_data), :trace_source_location),
    format_params(trace_data, config),
    format_result(trace_data, config),
    colorize_for(execution_time_representation(trace_data), :trace_execution_time),
  ].compact.join(" ")
end