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() : int
Return values
int —The number of errors
getLogs()
Returns an array of logs.
public
getLogs() : 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.
Return values
array<string|int, mixed> —An array of logs