Class: Logtail::LogEntry
- Inherits:
-
Object
- Object
- Logtail::LogEntry
- 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( = {}) hash = to_hash_unfiltered() return hash unless defined?(ActiveSupport::ParameterFilter) parameter_filter = ActiveSupport::ParameterFilter.new(Rails.application.config.filter_parameters) parameter_filter.filter(hash) end |
#to_hash_unfiltered ⇒ Object
3 |
# File 'lib/logtail-rails/log_entry.rb', line 3 alias to_hash_unfiltered to_hash |