Public Member Functions | Data Fields | Protected Attributes

Zend_Log_Formatter_Simple Class Reference

Inheritance diagram for Zend_Log_Formatter_Simple:
Zend_Log_Formatter_Interface

Public Member Functions

 __construct ($format=null)
 format ($event)

Data Fields

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

Protected Attributes

 $_format

Detailed Description

Definition at line 34 of file Simple.php.


Constructor & Destructor Documentation

__construct ( format = null )

Class constructor

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

Definition at line 49 of file Simple.php.


Member Function Documentation

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.

Definition at line 69 of file Simple.php.


The documentation for this class was generated from the following file: