W3cubDocs

/Symfony 2.8

Symfony\Bridge\Monolog\Logger

class Logger extends Logger implements LoggerInterface, DebugLoggerInterface

Logger.

Methods

emerg($message, array $context = array())
crit($message, array $context = array())
err($message, array $context = array())
warn($message, array $context = array())
array getLogs()

Returns an array of logs.

int countErrors()

Returns the number of errors.

Details

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

Parameters

$message
array $context

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

Parameters

$message
array $context

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

Parameters

$message
array $context

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

Parameters

$message
array $context

public 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

public int countErrors()

Returns the number of errors.

Return Value

int The number of errors

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Bridge/Monolog/Logger.html