interface DebugLoggerInterface

DebugLoggerInterface.

Methods

array
getLogs()

Returns an array of logs.

int
countErrors()

Returns the number of errors.

clear()

Removes all log records.

Details

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

int countErrors()

Returns the number of errors.

Return Value

int The number of errors

clear()

Removes all log records.