Class Yell::Silencer
In: lib/yell/silencer.rb
Parent: Object

The +Yell::Silencer+ is your handly helper for stiping out unwanted log messages.

Methods

add   call   inspect   new   patterns  

Classes and Modules

Class Yell::Silencer::PresetNotFound

Constants

Presets = { :assets => [/\AStarted GET "\/assets/, /\AServed asset/, /\A\s*\z/]

Public Class methods

Public Instance methods

Add one or more patterns to the silencer

@example

  add( 'password' )
  add( 'username', 'password' )

@example Add regular expressions

  add( /password/ )

@return [self] The silencer instance

Clears out all the messages that would match any defined pattern

@example

  call(['username', 'password'])
  #=> ['username]

@return [Array] The remaining messages

Get a pretty string

@private

[Validate]