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
파일 보기 프로젝트 열기: gordalina/cachetool 1 사용 예제들

공개 메소드들

메소드 설명
__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