Log/Formatter/Xml.php
- category
- Zend
- copyright
- Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- license
- http://framework.zend.com/license/new-bsd New BSD License
- package
- Zend_Log
- subpackage
- Formatter
- version
- $Id: Xml.php 20104 2010-01-06 21:26:01Z matthew $
- Classes
- Zend_Log_Formatter_Xml
Description
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.
- Implements
- Zend_Log_Formatter_Interface
- category
- Zend
- copyright
- Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- license
- http://framework.zend.com/license/new-bsd New BSD License
- package
- Zend_Log
- subpackage
- Formatter
- version
- $Id: Xml.php 20104 2010-01-06 21:26:01Z matthew $
- Properties
- $_rootElement
- $_elementMap
- $_encoding
- Methods
- __construct
- getEncoding
- setEncoding
- format
Description
Properties
Relates $_elementMap = ''
Details
- $_elementMap
- Relates
XML elements to log data field keys.
- visibility
- protected
- default
- final
- false
- static
- false
string $_encoding = ''
Details
- $_encoding
- string
Encoding to use in XML
- visibility
- protected
- default
- final
- false
- static
- false
Relates $_rootElement = ''
Details
- $_rootElement
- Relates
XML elements to log data field keys.
- visibility
- protected
- default
- final
- false
- static
- false
Methods
__construct(
string $rootElement
=
logEntry, array $elementMap
=
null, string $encoding
=
UTF-8
)
:
Class constructor
Arguments
- $rootElement
- string
Name of root element
- $elementMap
- array
- $encoding
- string
Encoding to use (defaults to UTF-8)
Details
- visibility
- public
- final
- false
- static
- false
format(
array $event
)
:
string
Formats data into a single line to be written by the writer.
Arguments
- $event
- array
event data
Output
- string
- formatted line to write to the log
Details
- visibility
- public
- final
- false
- static
- false
getEncoding(
)
:
string
Get encoding
Details
- visibility
- public
- final
- false
- static
- false
setEncoding(
string $value
)
:
Zend_Log_Formatter_Xml
Set encoding
Details
- visibility
- public
- final
- false
- static
- false