Module: OxyLogger::Formatter

Defined in:
lib/oxy_logger/formatter.rb

Class Method Summary collapse

Class Method Details

.format_data(first_data) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/oxy_logger/formatter.rb', line 3

def self.format_data(first_data)
  data = {}
  data[:run_time] = first_data[:work_time]
  data[:date_time] = first_data[:start]
  data[:class_name] = first_data[:class_name]
  data[:method_name] = first_data[:name]
  data[:result] = first_data[:result]
  data[:params] = first_data[:params]
  data[:type] = first_data[:type]
  data[:save_to] = OxyLogger.config_oxy_hash[:save_to].to_sym
  data
end