Sha256: 309452fd57df25a975b5cde49ac298da15229b97ef414464535964bc6bf33e48

Contents?: true

Size: 650 Bytes

Versions: 51

Compression:

Stored size: 650 Bytes

Contents

module Logging

  # The `Filter` class allows for filtering messages based on event
  # properties independently of the standard minimum-level restriction.
  #
  # All other Filters inherit from this class, and must override the
  # `allow` method to return the event if it should be allowed into the log.
  # Otherwise the `allow` method should return `nil`.
  class Filter

    # Returns the event if it should be allowed into the log. Returns `nil` if
    # the event should _not_ be allowed into the log. Subclasses should override
    # this method and provide their own filtering semantics.
    def allow( event )
      event
    end
  end
end

Version data entries

51 entries across 43 versions & 4 rubygems

Version Path
vagrant-unbundled-2.2.2.0 vendor/bundle/ruby/2.5.0/gems/logging-2.2.2/lib/logging/filter.rb
vagrant-unbundled-2.2.0.0 vendor/bundle/ruby/2.5.0/gems/logging-2.2.2/lib/logging/filter.rb
vagrant-unbundled-2.1.4.0 vendor/bundle/ruby/2.5.0/gems/logging-2.2.2/lib/logging/filter.rb
vagrant-unbundled-2.1.2.0 vendor/bundle/ruby/2.3.0/gems/logging-2.2.2/lib/logging/filter.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/logging-2.2.2/lib/logging/filter.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/logging-2.2.2/lib/logging/filter.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/logging-2.2.2/lib/logging/filter.rb
vagrant-unbundled-2.1.1.0 vendor/bundle/ruby/2.5.0/gems/logging-2.2.2/lib/logging/filter.rb
vagrant-unbundled-2.0.4.0 vendor/bundle/ruby/2.5.0/gems/logging-2.2.2/lib/logging/filter.rb
vagrant-unbundled-2.0.3.0 vendor/bundle/ruby/2.5.0/gems/logging-2.2.2/lib/logging/filter.rb
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.4.0/gems/logging-2.2.2/lib/logging/filter.rb
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.5.0/gems/logging-2.2.2/lib/logging/filter.rb
vagrant-unbundled-2.0.1.0 vendor/bundle/ruby/2.4.0/gems/logging-2.2.2/lib/logging/filter.rb
vagrant-unbundled-2.0.0.1 vendor/bundle/ruby/2.4.0/gems/logging-2.2.2/lib/logging/filter.rb
vagrant-unbundled-1.9.8.1 vendor/bundle/ruby/2.4.0/gems/logging-2.2.2/lib/logging/filter.rb
vagrant-unbundled-1.9.7.1 vendor/bundle/ruby/2.4.0/gems/logging-2.2.2/lib/logging/filter.rb
vagrant-unbundled-1.9.5.1 vendor/bundle/ruby/2.4.0/gems/logging-2.2.2/lib/logging/filter.rb
logging-2.2.2 lib/logging/filter.rb
logging-2.2.1 lib/logging/filter.rb
logging-2.2.0 lib/logging/filter.rb