Public Member Functions | Protected Attributes

Zend_Log_Formatter_Xml Class Reference

Inheritance diagram for Zend_Log_Formatter_Xml:
Zend_Log_Formatter_Interface

Public Member Functions

 __construct ($rootElement= 'logEntry', $elementMap=null, $encoding= 'UTF-8')
 getEncoding ()
 setEncoding ($value)
 format ($event)

Protected Attributes

 $_rootElement
 $_elementMap
 $_encoding

Detailed Description

Definition at line 34 of file Xml.php.


Constructor & Destructor Documentation

__construct ( rootElement = 'logEntry',
elementMap = null,
encoding = 'UTF-8' 
)

Class constructor

Parameters:
string$rootElementName of root element
array$elementMap
string$encodingEncoding to use (defaults to UTF-8)

Definition at line 58 of file Xml.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 93 of file Xml.php.

getEncoding (  )

Get encoding

Returns:
string

Definition at line 70 of file Xml.php.

setEncoding ( value )

Set encoding

Parameters:
string$value
Returns:
Zend_Log_Formatter_Xml

Definition at line 81 of file Xml.php.


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