class Logger extends Logger implements LoggerInterface, DebugLoggerInterface

Logger.

Methods

emerg($message, array $context = array()) deprecated

No description

crit($message, array $context = array()) deprecated

No description

err($message, array $context = array()) deprecated

No description

warn($message, array $context = array()) deprecated

No description

array
getLogs()

Returns an array of logs.

int
countErrors()

Returns the number of errors.

Details

at line 28
emerg($message, array $context = array()) deprecated

deprecated since version 2.2, to be removed in 3.0. Use emergency() which is PSR-3 compatible.

Parameters

$message
array $context

at line 38
crit($message, array $context = array()) deprecated

deprecated since version 2.2, to be removed in 3.0. Use critical() which is PSR-3 compatible.

Parameters

$message
array $context

at line 48
err($message, array $context = array()) deprecated

deprecated since version 2.2, to be removed in 3.0. Use error() which is PSR-3 compatible.

Parameters

$message
array $context

at line 58
warn($message, array $context = array()) deprecated

deprecated since version 2.2, to be removed in 3.0. Use warning() which is PSR-3 compatible.

Parameters

$message
array $context

at line 68
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 80
int countErrors()

Returns the number of errors.

Return Value

int The number of errors