XmlFormatter
in package
implements
LogFormatter
Tags
Interfaces, Classes, Traits and Enums
Table of Contents
- $options : array<string|int, string>
- Config options.
- __construct() : mixed
- Constructor.
- format() : string
- Formats an event to be written by the handler.
Properties
$options
Config options.
protected
array<string|int, string>
$options
= ['elementEntry' => 'log', 'elementTimestamp' => 'timestamp', 'elementMessage' => 'message', 'elementLevel' => 'level', 'lineEnding' => PHP_EOL]
Methods
__construct()
Constructor.
public
__construct([array<string|int, string> $options = [] ]) : mixed
Parameters
- $options : array<string|int, string> = []
-
Config Options See $options property
Return values
mixed —format()
Formats an event to be written by the handler.
public
format(LogMessage $event) : string
Parameters
- $event : LogMessage
-
Log event.
Return values
string —XML string.