Documentation

Horde_Log_Filter_Message
in package
implements Horde_Log_Filter

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

Horde_Log_Filter

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

$_regexp

Filter regex.

protected string $_regexp

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(array<string|int, mixed> $event) : bool
Parameters
$event : array<string|int, mixed>

Log event.

Return values
bool

Accepted?

Search results