PHP Class Monolog\Handler\AbstractHandler

Author: Jordi Boggiano ([email protected])
Inheritance: implements Monolog\Handler\HandlerInterface
Show file Open project: pmjones/php-framework-benchmarks Class Usage Examples

Protected Properties

Property Type Description
$bubble
$formatter Monolog\Formatter\FormatterInterface
$level
$processors

Public Methods

Method Description
__construct ( integer $level = Logger::DEBUG, boolean $bubble = true )
__destruct ( )
close ( ) Closes the handler.
getBubble ( ) : boolean Gets the bubbling behavior.
getFormatter ( )
getLevel ( ) : integer Gets minimum logging level at which this handler will be triggered.
handleBatch ( array $records )
isHandling ( array $record )
popProcessor ( )
pushProcessor ( $callback )
setBubble ( boolean $bubble ) Sets the bubbling behavior.
setFormatter ( Monolog\Formatter\FormatterInterface $formatter )
setLevel ( integer $level ) Sets minimum logging level at which this handler will be triggered.

Protected Methods

Method Description
getDefaultFormatter ( ) : Monolog\Formatter\FormatterInterface Gets the default formatter.

Method Details

__construct() public method

public __construct ( integer $level = Logger::DEBUG, boolean $bubble = true )
$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

__destruct() public method

public __destruct ( )

close() public method

This will be called automatically when the object is destroyed
public close ( )

getBubble() public method

Gets the bubbling behavior.
public getBubble ( ) : boolean
return boolean True means that bubbling is not permitted. False means that this handler allows bubbling.

getDefaultFormatter() protected method

Gets the default formatter.
protected getDefaultFormatter ( ) : Monolog\Formatter\FormatterInterface
return Monolog\Formatter\FormatterInterface

getFormatter() public method

public getFormatter ( )

getLevel() public method

Gets minimum logging level at which this handler will be triggered.
public getLevel ( ) : integer
return integer

handleBatch() public method

public handleBatch ( array $records )
$records array

isHandling() public method

public isHandling ( array $record )
$record array

popProcessor() public method

public popProcessor ( )

pushProcessor() public method

public pushProcessor ( $callback )

setBubble() public method

Sets the bubbling behavior.
public setBubble ( boolean $bubble )
$bubble boolean True means that bubbling is not permitted. False means that this handler allows bubbling.

setFormatter() public method

public setFormatter ( Monolog\Formatter\FormatterInterface $formatter )
$formatter Monolog\Formatter\FormatterInterface

setLevel() public method

Sets minimum logging level at which this handler will be triggered.
public setLevel ( integer $level )
$level integer

Property Details

$bubble protected property

protected $bubble

$formatter protected property

protected FormatterInterface,Monolog\Formatter $formatter
return Monolog\Formatter\FormatterInterface

$level protected property

protected $level

$processors protected property

protected $processors