class DebugProcessor implements DebugLoggerInterface, ResetInterface

Methods

__construct(RequestStack $requestStack = null)

No description

__invoke(array $record)

No description

array
getLogs()

Returns an array of logs.

int
countErrors()

Returns the number of errors.

clear()

Removes all log records.

reset()

No description

Details

at line 26
__construct(RequestStack $requestStack = null)

Parameters

RequestStack $requestStack

at line 31
__invoke(array $record)

Parameters

array $record

at line 64
array getLogs()

Returns an array of logs.

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 Value

array An array of logs

at line 86
int countErrors()

Returns the number of errors.

Return Value

int The number of errors

at line 102
clear()

Removes all log records.

at line 111
reset()