Logger

class Logger extends AbstractLogger

Minimalist PSR-3 logger designed to write in stderr or any other stream.

Methods

__construct(string $minLevel = null, $output = 'php://stderr', callable $formatter = null)
log($level, $message, array $context = array())

{@inheritdoc}

Details

__construct(string $minLevel = null, $output = 'php://stderr', callable $formatter = null)

Parameters

string $minLevel
$output
callable $formatter

log($level, $message, array $context = array())

{@inheritdoc}

Parameters

$level
$message
array $context

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/HttpKernel/Log/Logger.html