\Horde_Log_Handler_Mock

Summary

Methods
Properties
Constants
addFilter()
log()
setOption()
write()
shutdown()
$events
$shutdown
No constants found
No protected methods found
$_options
$_filters
N/A
No private methods found
No private properties found
N/A

Properties

$events

$events : array

Log events.

Type

array

$shutdown

$shutdown : boolean

Was shutdown called?

Type

boolean

$_options

$_options : array

Options.

Type

array

$_filters

$_filters : array

List of filter objects.

Type

array

Methods

addFilter()

addFilter(\Horde_Log_Filter  $filter) 

Add a filter specific to this handler.

Parameters

\Horde_Log_Filter $filter

Filter to add.

log()

log(array  $event) 

Log a message to this handler.

Parameters

array $event

Log event.

setOption()

setOption(string  $optionKey, mixed  $optionValue) : boolean

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

Parameters

string $optionKey

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

mixed $optionValue

New value to assign to the option

Throws

\Horde_Log_Exception

Returns

boolean —

True.

write()

write(array  $event) 

Write a message to the log.

Parameters

array $event

Event data.

shutdown()

shutdown() 

Record shutdown