W3cubDocs

/Symfony 2.7

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()
integer countErrors()

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()

Return Value

array An array of logs

See also

Symfony\Component\HttpKernel\Log\DebugLoggerInterface

public integer countErrors()

Return Value

integer The number of errors

See also

Symfony\Component\HttpKernel\Log\DebugLoggerInterface

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