Documentation

MessageFilter
in package
implements LogFilter

Tags
author

Mike Naberezny mike@maintainable.com

author

Chuck Hagenbuch chuck@horde.org

category

Horde

license

http://www.horde.org/licenses/bsd BSD

subpackage

Filters

Interfaces, Classes, Traits and Enums

LogFilter

Table of Contents

$regexp  : string
Filter regex.
__construct()  : mixed
Filter out any log messages not matching $regexp.
accept()  : bool
Returns Horde_Log_Filter::ACCEPT to accept the message, Horde_Log_Filter::IGNORE to ignore it.

Properties

Methods

__construct()

Filter out any log messages not matching $regexp.

public __construct(string $regexp) : mixed
Parameters
$regexp : string

Regular expression to test the log message.

Tags
throws
InvalidArgumentException

Invalid regular expression.

Return values
mixed

accept()

Returns Horde_Log_Filter::ACCEPT to accept the message, Horde_Log_Filter::IGNORE to ignore it.

public accept(LogMessage $event) : bool
Parameters
$event : LogMessage

Log event.

Return values
bool

Accepted?

Search results