Log/Formatter/Xml.php

Show: PublicProtectedPrivateinherited
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-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Log  
Subpackage
Formatter  
Version
$Id$  

\Zend_Log_Formatter_Xml

Package: Zend_Log\Formatter
Parent(s)
\Zend_Log_Formatter_Abstract
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Version
$Id$  

Properties

>VPropertyprotectedarray $_elementMap

Relates XML elements to log data field keys.

Details
Type
array
>VPropertyprotectedstring $_encoding

Encoding to use in XML

Details
Type
string
>VPropertyprotectedstring $_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
NameTypeDescription
$optionsarray | \Zend_Config
methodpublicfactory(array | \Zend_Config $options) : \Zend_Log_Formatter_Xml
static

Factory for Zend_Log_Formatter_Xml classe

Parameters
NameTypeDescription
$optionsarray | \Zend_Config
Returns
TypeDescription
\Zend_Log_Formatter_Xml
methodpublicformat(array $event) : string

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

Parameters
NameTypeDescription
$eventarray

event data

Returns
TypeDescription
stringformatted line to write to the log
methodpublicgetEncoding() : string

Get encoding

Returns
TypeDescription
string
methodpublicsetEncoding(string $value) : \Zend_Log_Formatter_Xml

Set encoding

Parameters
NameTypeDescription
$valuestring
Returns
TypeDescription
\Zend_Log_Formatter_Xml
Documentation was generated by phpDocumentor 2.2.0 .