API Documentation

Zend/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 license@zend.com 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 24594 2012-01-05 21:27:01Z 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  

Properties

Propertyprotectedstring  $_defaultPriorityStyle= 'Zend_Wildfire_Plugin_FirePhp::LOG'

The default logging style for un-mapped priorities

Default valueZend_Wildfire_Plugin_FirePhp::LOGDetails
Type
string
Propertyprotectedboolean  $_enabled= 'true'

Flag indicating whether the log writer is enabled

Default valuetrueDetails
Type
boolean
Propertyprotectedarray  $_priorityStyles= 'array(Zend_Log::EMERG => Zend_Wildfire_Plugin_FirePhp::ERROR'

Maps logging priorities to logging display styles

Default valuearray(Zend_Log::EMERG => Zend_Wildfire_Plugin_FirePhp::ERRORDetails
Type
array

Methods

methodpublic__construct( ) : void

Class constructor

methodprotected_write( array $event ) : void

Log a message to the Firebug Console.

Parameters
Name Type Description
$event array

The event data

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.
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
Documentation was generated by DocBlox 0.15.1.