Class: LogSinks::Filter

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

Overview

Filter is a proc-like object that filters events to be accepted by [LogSinks::Sink]

Instance Method Summary collapse

Instance Method Details

#call(_event) ⇒ Boolean

Applies filter to the event

Parameters:

  • event (LogSinks::Event)

    event to filter

Returns:

  • (Boolean)

    true if [LogSinks::Sink] should accept the event; false otherwise



9
10
11
# File 'lib/log_sinks/filter.rb', line 9

def call(_event)
  true
end