Class Xml

Summary

Fully Qualified Name: Zend\Log\Formatter\Xml
Implements: FormatterInterface

Description

Methods

Name Description Defined By
__construct() Class constructor (the default encoding is UTF-8) Xml
format() Formats data into a single line to be written by the writer. Xml
getDateTimeFormat() {@inheritDoc} Xml
getEncoding() Get encoding Xml
getEscaper() Get Escaper instance Xml
setDateTimeFormat() {@inheritDoc} Xml
setEncoding() Set encoding Xml
setEscaper() Set Escaper instance Xml

Method Details

__construct()

Class constructor (the default encoding is UTF-8)

Parameter Name Type Description
$options array|\Traversable

Returns: \Xml

format()

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

Parameter Name Type Description
$event array event

Returns: string formatted line to write to the log

getDateTimeFormat()

{@inheritDoc}

Returns:

getEncoding()

Get encoding

Returns: string

getEscaper()

Get Escaper instance

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

Returns: \Escaper

setDateTimeFormat()

{@inheritDoc}

Parameter Name Type Description
$dateTimeFormat

Returns:

setEncoding()

Set encoding

Parameter Name Type Description
$value string

Returns: \Xml

setEscaper()

Set Escaper instance

Parameter Name Type Description
$escaper \Escaper

Returns: \Xml

Top