Writes log messages to the Firebug Console via FirePHP.

category Zend
package Zend_Log
subpackage Writer
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License
inherited_from \Zend_Log_Writer_Abstract

 Methods

Class constructor

__construct() : void

Add a filter specific to this writer.

addFilter(\Zend_Log_Filter_Interface|integer $filter) : \Zend_Log_Writer_Abstract
Inherited

Parameters

$filter

\Zend_Log_Filter_Interfaceinteger

Filter class or filter priority

Exceptions

\Zend_Log_Exception

Returns

\Zend_Log_Writer_Abstract

Create a new instance of Zend_Log_Writer_Firebug

factory(array|\Zend_Config $config) : \Zend_Log_Writer_Firebug
Static

Parameters

$config

array\Zend_Config

Returns

\Zend_Log_Writer_Firebug

Get the default display style for user-defined priorities

getDefaultPriorityStyle() : string

Returns

stringReturns the default log display style

Determine if the log writer is enabled.

getEnabled() : boolean

Returns

booleanReturns TRUE if the log writer is enabled.

Get a display style for a logging priority

getPriorityStyle(integer $priority) : string | boolean

Parameters

$priority

integer

The logging priority

Returns

stringbooleanThe logging display style if defined or FALSE otherwise

Set the default display style for user-defined priorities

setDefaultPriorityStyle(string $style) : string

Parameters

$style

string

The default log display style

Returns

stringReturns previous default log display style

Enable or disable the log writer.

setEnabled(boolean $enabled) : boolean

Parameters

$enabled

boolean

Set to TRUE to enable the log writer

Returns

booleanThe previous value.

Set a new formatter for this writer

setFormatter(\Zend_Log_Formatter_Interface $formatter) : \Zend_Log_Writer_Abstract
Inherited

Parameters

$formatter

\Zend_Log_Formatter_Interface

Returns

\Zend_Log_Writer_Abstract

Set a display style for a logging priority

setPriorityStyle(integer $priority, string $style) : string | boolean

Parameters

$priority

integer

The logging priority

$style

string

The logging display style

Returns

stringbooleanThe previous logging display style if defined or TRUE otherwise

Perform shutdown activites such as closing open resources

shutdown() : void
Inherited

Log a message to this writer.

write(array $event) : void
Inherited

Parameters

$event

array

log data event

Validate and optionally convert the config to array

_parseConfig(array|\Zend_Config $config) : array
InheritedStatic

Parameters

$config

array\Zend_Config

Zend_Config or Array

Exceptions

\Zend_Log_Exception

Returns

array

Log a message to the Firebug Console.

_write(array $event) : void
inherited_from \Zend_Log_Writer_Abstract::_write()

Parameters

$event

array

The event data

Write a message to the log.

_write(array $event) : void
Inherited

Parameters

$event

array

log data event

 Properties

 

The default logging style for un-mapped priorities

$_defaultPriorityStyle : string

Default

\Zend_Wildfire_Plugin_FirePhp::LOG
 

Flag indicating whether the log writer is enabled

$_enabled : boolean

Default

true
 

of Zend_Log_Filter_Interface

$_filters : array

Default

array()
 

Formats the log message before writing.

$_formatter : \Zend_Log_Formatter_Interface

Default

 

Maps logging priorities to logging display styles

$_priorityStyles : array

Default

array(\Zend_Log::EMERG => \Zend_Wildfire_Plugin_FirePhp::ERROR, \Zend_Log::ALERT => \Zend_Wildfire_Plugin_FirePhp::ERROR, \Zend_Log::CRIT => \Zend_Wildfire_Plugin_FirePhp::ERROR, \Zend_Log::ERR => \Zend_Wildfire_Plugin_FirePhp::ERROR, \Zend_Log::WARN => \Zend_Wildfire_Plugin_FirePhp::WARN, \Zend_Log::NOTICE => \Zend_Wildfire_Plugin_FirePhp::INFO, \Zend_Log::INFO => \Zend_Wildfire_Plugin_FirePhp::INFO, \Zend_Log::DEBUG => \Zend_Wildfire_Plugin_FirePhp::LOG)