Zend Framework  1.12
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes | List of all members
Zend_Log_Formatter_Simple Class Reference

Public Member Functions

 __construct ($format=null)
 Class constructor.
 
 format ($event)
 Formats data into a single line to be written by the writer.
 

Static Public Member Functions

static factory ($options)
 Factory for Zend_Log_Formatter_Simple classe.
 

Public Attributes

const DEFAULT_FORMAT = '%timestamp% %priorityName% (%priority%): %message%'
 

Protected Attributes

 $_format
 

Constructor & Destructor Documentation

__construct (   $format = null)

Class constructor.

Parameters
null | string$formatFormat specifier for log messages
Returns
void
Exceptions
Zend_Log_Exception

Member Function Documentation

static factory (   $options)
static

Factory for Zend_Log_Formatter_Simple classe.

Parameters
array | Zend_Config$options
Returns
Zend_Log_Formatter_Simple

Implements Zend_Log_FactoryInterface.

format (   $event)

Formats data into a single line to be written by the writer.

Parameters
array$eventevent data
Returns
string formatted line to write to the log

Implements Zend_Log_Formatter_Interface.

Member Data Documentation

$_format
protected
const DEFAULT_FORMAT = '%timestamp% %priorityName% (%priority%): %message%'