ConsoleLogger

class ConsoleLogger extends AbstractLogger

PSR-3 compliant console logger.

Constants

INFO
ERROR

Methods

__construct(OutputInterface $output, array $verbosityLevelMap = array(), array $formatLevelMap = array())
log($level, $message, array $context = array())

{@inheritdoc}

bool hasErrored()

Returns true when any messages have been logged at error levels.

Details

__construct(OutputInterface $output, array $verbosityLevelMap = array(), array $formatLevelMap = array())

Parameters

OutputInterface $output
array $verbosityLevelMap
array $formatLevelMap

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

{@inheritdoc}

Parameters

$level
$message
array $context

bool hasErrored()

Returns true when any messages have been logged at error levels.

Return Value

bool

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