API Documentation

Zend/Log/Formatter/Xml.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
Formatter  
Version
$Id: Xml.php 24594 2012-01-05 21:27:01Z matthew $  

\Zend_Log_Formatter_Xml

Package: Zend\Log\Formatter

Parent(s)
\Zend_Log_Formatter_Abstract
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Version
$Id: Xml.php 24594 2012-01-05 21:27:01Z matthew $  

Properties

Propertyprotectedarray  $_elementMap= ''

Relates XML elements to log data field keys.
Details
Type
array
Propertyprotectedstring  $_encoding= ''

Encoding to use in XML
Details
Type
string
Propertyprotectedstring  $_rootElement= ''

Name of root element
Details
Type
string

Methods

methodpublic__construct( array|\Zend_Config $options = array() ) : void

Class constructor (the default encoding is UTF-8)

Parameters
Name Type Description
$options array|\Zend_Config
methodpublicfactory( array|\Zend_Config $options ) : \Zend_Log_Formatter_Xml
static

Factory for Zend_Log_Formatter_Xml classe

Parameters
Name Type Description
$options array|\Zend_Config
Returns
Type Description
\Zend_Log_Formatter_Xml
methodpublicformat( array $event ) : string

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

Parameters
Name Type Description
$event array

event data

Returns
Type Description
string formatted line to write to the log
methodpublicgetEncoding( ) : string

Get encoding

Returns
Type Description
string
methodpublicsetEncoding( string $value ) : \Zend_Log_Formatter_Xml

Set encoding

Parameters
Name Type Description
$value string
Returns
Type Description
\Zend_Log_Formatter_Xml
Documentation was generated by DocBlox 0.15.1.