Class: Hanami::Logger::Filter Private

Inherits:
Object
  • Object
show all
Defined in:
lib/hanami/logger/filter.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Filtering logic

Since:

  • 1.1.0

Constant Summary collapse

FILTERED_VALUE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Since:

  • 1.3.7

"[FILTERED]"

Instance Method Summary collapse

Constructor Details

#initialize(filters = [], mask: FILTERED_VALUE) ⇒ Filter

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Filter.

Since:

  • 1.1.0


16
17
18
19
# File 'lib/hanami/logger/filter.rb', line 16

def initialize(filters = [], mask: FILTERED_VALUE)
  @filters = filters
  @mask = mask
end

Instance Method Details

#call(params) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 1.1.0


23
24
25
# File 'lib/hanami/logger/filter.rb', line 23

def call(params)
  _filter(_copy_params(params))
end