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