Documentation

DebugLoggerInterface

DebugLoggerInterface.

Tags
author

Fabien Potencier fabien@symfony.com

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

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
Return values
array<string|int, mixed>

Search results