Class: Logging::Filter

### Home Classes Methods

### In Files

- lib/logging/filter.rb

### Parent

Object

### Methods

- #allow

### Files

- History.txt

### Class/Module Index

Quicksearch

- Logging
- Logging::Appender
- Logging::Appenders
- Logging::Appenders::Buffering
- Logging::Appenders::File
- Logging::Appenders::IO
- Logging::Appenders::RollingFile
- Logging::Appenders::RollingFile::Roller
- Logging::Appenders::Stderr
- Logging::Appenders::Stdout
- Logging::Appenders::StringIo
- Logging::Appenders::Syslog
- Logging::ColorScheme
- Logging::Filter
- Logging::Filters
- Logging::Filters::Level
- Logging::Layout
- Logging::Layouts
- Logging::Layouts::Basic
- Logging::Layouts::Parseable
- Logging::Layouts::Pattern
- Logging::Logger
- Logging::MappedDiagnosticContext
- Logging::NestedDiagnosticContext
- Logging::Proxy
- Logging::RailsCompat
- Logging::Repository
- Logging::Repository::Singleton
- Logging::RootLogger
- RSpec
- RSpec::Core
- RSpec::Core::Configuration
- RSpec::LoggingHelper
- RSpec::LoggingHelper
- Spec
- Spec::Runner
- Spec::Runner::Configuration
- Object
- Object::LoggingHelper
- File
- FileUtils
- Module
- ReentrantMutex
- String

No matching classes.

# Logging::Filter

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`.

### Public Instance Methods

allow( event ) click to toggle source

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.

    # File lib/logging/filter.rb, line 14
    def allow( event )
      event
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.