DebugLoggerInterface
in
DebugLoggerInterface.
Tags
Table of Contents
- clear() : mixed
- Removes all log records.
- countErrors() : int
- Returns the number of errors.
- getLogs() : array<string|int, mixed>
- Returns an array of logs.
Methods
clear()
Removes all log records.
public
clear() : mixed
Return values
mixed —countErrors()
Returns the number of errors.
public
countErrors([Request|null $request = null ]) : int
Parameters
- $request : Request|null = null
Return values
int —getLogs()
Returns an array of logs.
public
getLogs([Request|null $request = null ]) : array<string|int, mixed>
A log is an array with the following mandatory keys: timestamp, message, priority, and priorityName. It can also have an optional context key containing an array.
Parameters
- $request : Request|null = null