LogFormatter implements LogFormatterInterface
Table of Contents
Interfaces
Methods
- __construct() : mixed
- format() : string
- Basic formatter to a string. Supports placeholders: {exception}, {trace}, {date}, {delimiter}.
- severityToString() : mixed
Methods
__construct()
public
__construct([mixed $showArguments = false ][, mixed $argMaxChars = 30 ]) : mixed
Parameters
- $showArguments : mixed = false
- $argMaxChars : mixed = 30
format()
Basic formatter to a string. Supports placeholders: {exception}, {trace}, {date}, {delimiter}.
public
format(mixed $message[, array<string|int, mixed> $context = [] ]) : string
Parameters
- $message : mixed
- $context : array<string|int, mixed> = []
Tags
Return values
stringseverityToString()
public
static severityToString(mixed $severity) : mixed
Parameters
- $severity : mixed