Log/Writer/Firebug.php

Show: inherited
Table of Contents

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Log  
Subpackage
Writer  
Version
$Id: Firebug.php 24593 2012-01-05 20:35:02Z matthew $  

\Zend_Log_Writer_Firebug

Package: Zend\Log\Writer

Writes log messages to the Firebug Console via FirePHP.

Parent(s)
\Zend_Log_Writer_Abstract
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Version
$Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $  

Properties

Propertyprotectedstring $_defaultPriorityStyle = \Zend_Wildfire_Plugin_FirePhp::LOG

The default logging style for un-mapped priorities

Default value\Zend_Wildfire_Plugin_FirePhp::LOGDetails
Type
string
Propertyprotectedboolean $_enabled = true

Flag indicating whether the log writer is enabled

Default valuetrueDetails
Type
boolean
Propertyprotectedarray $_filters = array()
inherited

<p>of Zend_Log_Filter_Interface</p>Inherited from: \Zend_Log_Writer_Abstract::$$_filters
Default valuearray()Details
Type
array
Inherited_from
\Zend_Log_Writer_Abstract::$$_filters  
Propertyprotected\Zend_Log_Formatter_Interface $_formatter =
inherited

Formats the log message before writing.

Inherited from: \Zend_Log_Writer_Abstract::$$_formatter
Propertyprotectedarray $_priorityStyles = 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)

Maps logging priorities to logging display styles

Default valuearray(\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)Details
Type
array

Methods

methodpublic__construct() : void

Class constructor

methodprotected_parseConfig(array | \Zend_Config $config) : array
staticinherited

Validate and optionally convert the config to array

Inherited from: \Zend_Log_Writer_Abstract::_parseConfig()
Parameters
Name Type Description
$config array | \Zend_Config

Zend_Config or Array

Returns
Type Description
array
Throws
Exception Description
\Zend_Log_Exception
methodprotected_write(array $event) : void

Log a message to the Firebug Console.

Parameters
Name Type Description
$event array

The event data

methodpublicaddFilter(\Zend_Log_Filter_Interface $filter) : \Zend_Log_Writer_Abstract
inherited

Add a filter specific to this writer.

Inherited from: \Zend_Log_Writer_Abstract::addFilter()
Parameters
Name Type Description
$filter \Zend_Log_Filter_Interface
Returns
Type Description
\Zend_Log_Writer_Abstract
methodpublicfactory(array | \Zend_Config $config) : \Zend_Log_Writer_Firebug
static

Create a new instance of Zend_Log_Writer_Firebug

Parameters
Name Type Description
$config array | \Zend_Config
Returns
Type Description
\Zend_Log_Writer_Firebug
methodpublicgetDefaultPriorityStyle() : string

Get the default display style for user-defined priorities

Returns
Type Description
string Returns the default log display style
methodpublicgetEnabled() : boolean

Determine if the log writer is enabled.

Returns
Type Description
boolean Returns TRUE if the log writer is enabled.
methodpublicgetPriorityStyle(int $priority) : string | boolean

Get a display style for a logging priority

Parameters
Name Type Description
$priority int

The logging priority

Returns
Type Description
string | boolean The logging display style if defined or FALSE otherwise
methodpublicsetDefaultPriorityStyle(string $style) : string

Set the default display style for user-defined priorities

Parameters
Name Type Description
$style string

The default log display style

Returns
Type Description
string Returns previous default log display style
methodpublicsetEnabled(boolean $enabled) : boolean

Enable or disable the log writer.

Parameters
Name Type Description
$enabled boolean

Set to TRUE to enable the log writer

Returns
Type Description
boolean The previous value.
methodpublicsetFormatter(\Zend_Log_Formatter_Interface $formatter) : \Zend_Log_Writer_Abstract
inherited

Set a new formatter for this writer

Inherited from: \Zend_Log_Writer_Abstract::setFormatter()
Parameters
Name Type Description
$formatter \Zend_Log_Formatter_Interface
Returns
Type Description
\Zend_Log_Writer_Abstract
methodpublicsetPriorityStyle(int $priority, string $style) : string | boolean

Set a display style for a logging priority

Parameters
Name Type Description
$priority int

The logging priority

$style string

The logging display style

Returns
Type Description
string | boolean The previous logging display style if defined or TRUE otherwise
methodpublicshutdown() : void
inherited

Perform shutdown activites such as closing open resources

Inherited from: \Zend_Log_Writer_Abstract::shutdown()
methodpublicwrite(array $event) : void
inherited

Log a message to this writer.

Inherited from: \Zend_Log_Writer_Abstract::write()
Parameters
Name Type Description
$event array

log data event

Documentation was generated by phpDocumentor 2.0.0a8.