Log/Formatter/Xml.php
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
Methods
__construct(array | \Zend_Config $options = array()) : void
Class constructor (the default encoding is UTF-8)
Parameters
Name | Type | Description |
---|---|---|
$options | array | \Zend_Config |
factory(array | \Zend_Config $options) : \Zend_Log_Formatter_Xml
static
Factory for Zend_Log_Formatter_Xml classe
Parameters
Returns
Name | Type | Description |
---|---|---|
$options | array | \Zend_Config |
Type | Description |
---|---|
\Zend_Log_Formatter_Xml |
format(array $event) : string
Formats data into a single line to be written by the writer.
Parameters
Returns
Name | Type | Description |
---|---|---|
$event | array | event data |
Type | Description |
---|---|
string | formatted line to write to the log |
setEncoding(string $value) : \Zend_Log_Formatter_Xml
Set encoding
Parameters
Returns
Name | Type | Description |
---|---|---|
$value | string |
Type | Description |
---|---|
\Zend_Log_Formatter_Xml |