category Zend
package Zend_Log
subpackage Formatter

 Methods

Class constructor (the default encoding is UTF-8)

__construct(array | \Traversable $options) : \Zend\Log\Formatter\Xml

Parameters

$options

array\Traversable

Returns

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

format(array $event) : string

Parameters

$event

array

event data

Returns

stringformatted line to write to the log

Get the format specifier for DateTime objects

getDateTimeFormat() : string

Returns

string

Get encoding

getEncoding() : string

Returns

string

Get Escaper instance

getEscaper() : \Zend\Escaper\Escaper

Lazy-loads an instance with the current encoding if none registered.

Returns

Set the format specifier for DateTime objects

setDateTimeFormat(string $dateTimeFormat) : \Zend\Log\Formatter\FormatterInterface

Parameters

$dateTimeFormat

string

DateTime format

Returns

Set encoding

setEncoding(string $value) : \Zend\Log\Formatter\Xml

Parameters

$value

string

Returns

Set Escaper instance

setEscaper(\Zend\Escaper\Escaper $escaper) : \Zend\Log\Formatter\Xml

Parameters

Returns

 Properties

 

Format specifier for DateTime objects in event data (default: ISO 8601)

$dateTimeFormat : string

see \Zend\Log\Formatter\http://php.net/manual/en/function.date.php
 

<p>Relates XML elements to log data field keys.</p>

$elementMap : array

 

<p>Encoding to use in XML</p>

$encoding : string

 

<p>instance</p>

$escaper : \Zend\Escaper\Escaper

 

<p>Name of root element</p>

$rootElement : string

 Constants

 

Default format specifier for DateTime objects is ISO 8601

DEFAULT_DATETIME_FORMAT 
Inherited

see \Zend\Log\Formatter\http://php.net/manual/en/function.date.php
inherited_from \Zend\Log\Formatter\FormatterInterface::DEFAULT_DATETIME_FORMAT