PHP Class Resque\Logger\Handler\ConsoleHandler

Author: Michael Haynes ([email protected])
Inheritance: extends Monolog\Handler\AbstractProcessingHandler
显示文件 Open project: mjphaynes/php-resque

Protected Properties

Property Type Description
$output The console output interface

Public Methods

Method Description
__construct ( Symfony\Component\Console\Output\OutputInterface $output, integer $level = Logger::DEBUG, boolean $bubble = true )
handle ( array $record )
isHandling ( array $record )

Protected Methods

Method Description
getDefaultFormatter ( )
write ( array $record )

Private Methods

Method Description
updateLevel ( ) : boolean Updates the logging level based on the verbosity setting of the console output.

Method Details

__construct() public method

public __construct ( Symfony\Component\Console\Output\OutputInterface $output, integer $level = Logger::DEBUG, boolean $bubble = true )
$output Symfony\Component\Console\Output\OutputInterface The output interface
$level integer The minimum logging level at which this handler will be triggered
$bubble boolean Whether the messages that are handled can bubble up the stack or not

getDefaultFormatter() protected method

protected getDefaultFormatter ( )

handle() public method

public handle ( array $record )
$record array

isHandling() public method

public isHandling ( array $record )
$record array

write() protected method

protected write ( array $record )
$record array

Property Details

$output protected_oe property

The console output interface
protected $output