Documentation

Horde_Log_Handler_Firebug 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

$_buffer  : string
Array of buffered output.
$_filters  : array<string|int, mixed>
List of filter objects.
$_formatter  : Horde_Log_Formatter
Formats the log message before writing.
$_methods  : array<string|int, mixed>
Mapping of log priorities to Firebug methods.
$_options  : array<string|int, mixed>
Options to be set by setOption().
__construct()  : mixed
Class Constructor
addFilter()  : mixed
Add a filter specific to this handler.
flush()  : mixed
Flush the buffer.
log()  : mixed
Log a message to this handler.
setOption()  : bool
Sets an option specific to the implementation of the log handler.
write()  : bool
Write a message to the firebug console. This function really just writes the message to the buffer. If buffering is enabled, the message won't be output until the buffer is flushed. If buffering is not enabled, the buffer will be flushed immediately.

Properties

$_buffer

Array of buffered output.

protected string $_buffer = array()

$_filters

List of filter objects.

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

$_methods

Mapping of log priorities to Firebug methods.

protected static array<string|int, mixed> $_methods = array(\Horde_Log::EMERG => 'error', \Horde_Log::ALERT => 'error', \Horde_Log::CRIT => 'error', \Horde_Log::ERR => 'error', \Horde_Log::WARN => 'warn', \Horde_Log::NOTICE => 'info', \Horde_Log::INFO => 'info', \Horde_Log::DEBUG => 'debug')

$_options

Options to be set by setOption().

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

Methods

flush()

Flush the buffer.

public flush() : mixed
Return values
mixed

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.

write()

Write a message to the firebug console. This function really just writes the message to the buffer. If buffering is enabled, the message won't be output until the buffer is flushed. If buffering is not enabled, the buffer will be flushed immediately.

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

Log event.

Return values
bool

True.

Search results