\Horde_Log_Handler_Scribe

Summary

Methods
Properties
Constants
addFilter()
log()
setOption()
write()
__construct()
No public properties found
No constants found
No protected methods found
$_options
$_filters
$_scribe
$_formatter
N/A
No private methods found
No private properties found
N/A

Properties

$_options

$_options : array

Options to be set by setOption().

Type

array

$_filters

$_filters : array

List of filter objects.

Type

array

$_scribe

$_scribe : \Horde_Scribe_Client

Scribe client.

Type

\Horde_Scribe_Client

$_formatter

$_formatter : \Horde_Log_Formatter

Formats the log message before writing.

Type

\Horde_Log_Formatter

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) : boolean

Write a message to the log.

Parameters

array $event

Log event.

Returns

boolean —

True.

__construct()

__construct(\Horde_Scribe_Client  $scribe, \Horde_Log_Formatter  $formatter = null) 

Constructor.

Parameters

\Horde_Scribe_Client $scribe

Scribe client.

\Horde_Log_Formatter $formatter

Log formatter.