Documentation

Horde_Log_Handler_Mock extends Horde_Log_Handler_Base
in package

Tags
author

Mike Naberezny mike@maintainable.com

author

Chuck Hagenbuch chuck@horde.org

category

Horde

license

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

subpackage

Handlers

Table of Contents

$events  : array<string|int, mixed>
Log events.
$shutdown  : bool
Was shutdown called?
$_filters  : array<string|int, mixed>
List of filter objects.
$_options  : array<string|int, mixed>
Options.
addFilter()  : mixed
Add a filter specific to this handler.
log()  : mixed
Log a message to this handler.
setOption()  : bool
Sets an option specific to the implementation of the log handler.
shutdown()  : mixed
Record shutdown
write()  : mixed
Write a message to the log.

Properties

$events

Log events.

public array<string|int, mixed> $events = array()

$shutdown

Was shutdown called?

public bool $shutdown = \false

$_filters

List of filter objects.

protected array<string|int, mixed> $_filters = array()

$_options

Options.

protected array<string|int, mixed> $_options = array('ident' => '')

Methods

log()

Log a message to this handler.

public log(array<string|int, mixed> $event) : mixed
Parameters
$event : array<string|int, mixed>

Log event.

Return values
mixed

setOption()

Sets an option specific to the implementation of the log handler.

public setOption(string $optionKey, mixed $optionValue) : bool
Parameters
$optionKey : string

Key name for the option to be changed. Keys are handler-specific.

$optionValue : mixed

New value to assign to the option

Tags
throws
Horde_Log_Exception
Return values
bool

True.

shutdown()

Record shutdown

public shutdown() : mixed
Return values
mixed

write()

Write a message to the log.

public write(array<string|int, mixed> $event) : mixed
Parameters
$event : array<string|int, mixed>

Event data.

Return values
mixed

Search results