PHP Класс CacheTool\Monolog\ConsoleHandler

It is disabled by default and gets activated as soon as a command is executed. Instead of listening to the console events, the output can also be set manually. The minimum logging level at which this handler will be triggered depends on the verbosity setting of the console output. The default mapping is: - OutputInterface::VERBOSITY_NORMAL will show all WARNING and higher logs - OutputInterface::VERBOSITY_VERBOSE (-v) will show all NOTICE and higher logs - OutputInterface::VERBOSITY_VERY_VERBOSE (-vv) will show all INFO and higher logs - OutputInterface::VERBOSITY_DEBUG (-vvv) will show all DEBUG and higher logs, i.e. all logs This mapping can be customized with the $verbosityLevelMap constructor parameter.
Наследование: extends Monolog\Handler\AbstractProcessingHandler
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Symfony\Component\Console\Output\OutputInterface $output = null, boolean $bubble = true, array $verbosityLevelMap = [] ) Constructor.
close ( ) Disables the output.
handle ( array $record )
isHandling ( array $record )
setOutput ( Symfony\Component\Console\Output\OutputInterface $output ) Sets the console output to use for printing logs.

Защищенные методы

Метод Описание
getDefaultFormatter ( )
write ( array $record )

Приватные методы

Метод Описание
updateLevel ( ) : boolean Updates the logging level based on the verbosity setting of the console output.

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( Symfony\Component\Console\Output\OutputInterface $output = null, boolean $bubble = true, array $verbosityLevelMap = [] )
$output Symfony\Component\Console\Output\OutputInterface The console output to use (the handler remains disabled when passing null until the output is set, e.g. by using console events)
$bubble boolean Whether the messages that are handled can bubble up the stack
$verbosityLevelMap array Array that maps the OutputInterface verbosity to a minimum logging level (leave empty to use the default mapping)

close() публичный Метод

Disables the output.
public close ( )

getDefaultFormatter() защищенный Метод

protected getDefaultFormatter ( )

handle() публичный Метод

public handle ( array $record )
$record array

isHandling() публичный Метод

public isHandling ( array $record )
$record array

setOutput() публичный Метод

Sets the console output to use for printing logs.
public setOutput ( Symfony\Component\Console\Output\OutputInterface $output )
$output Symfony\Component\Console\Output\OutputInterface The console output to use

write() защищенный Метод

protected write ( array $record )
$record array