SimpleFormatter
in package
implements
LogFormatter
Tags
Interfaces, Classes, Traits and Enums
Table of Contents
- $format : string
- Format string.
- __construct() : mixed
- Constructor.
- format() : string
- Formats an event to be written by the handler.
Properties
$format
Format string.
protected
string
$format
Methods
__construct()
Constructor.
public
__construct([array<string|int, string> $options = null ]) : mixed
Parameters
- $options : array<string|int, string> = null
-
Configuration options:
'format' - (string) The log template.
Tags
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 —Formatted line.