Class: Logtail::LogEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/logtail-rails/log_entry.rb

Instance Method Summary collapse

Instance Method Details

#to_hash(options = {}) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/logtail-rails/log_entry.rb', line 5

def to_hash(options = {})
  hash = to_hash_unfiltered(options)
  return hash unless defined?(ActiveSupport::ParameterFilter)

  parameter_filter = ActiveSupport::ParameterFilter.new(Rails.application.config.filter_parameters)

  parameter_filter.filter(hash)
end

#to_hash_unfilteredObject



3
# File 'lib/logtail-rails/log_entry.rb', line 3

alias to_hash_unfiltered to_hash