Fully Qualified Name: | Zend\Log\Formatter\Xml |
Implements: | FormatterInterface |
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 |
Class constructor (the default encoding is UTF-8)
Parameter Name | Type | Description |
---|---|---|
$options | array|\Traversable |
Returns: \Xml
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
{@inheritDoc}
Returns:
Get encoding
Returns: string
Get Escaper instance
Lazy-loads an instance with the current encoding if none registered.
Returns: \Escaper
{@inheritDoc}
Parameter Name | Type | Description |
---|---|---|
$dateTimeFormat |
Returns:
Set encoding
Parameter Name | Type | Description |
---|---|---|
$value | string |
Returns: \Xml
Set Escaper instance
Parameter Name | Type | Description |
---|---|---|
$escaper | \Escaper |
Returns: \Xml