Property | Type | Description | |
---|---|---|---|
$bubble | |||
$buffer | |||
$formatter | Webiny\Component\Logger\Driver\Webiny\Formatter\FormatterInterface | ||
$levels | |||
$processors | |||
$records |
Method | Description | |
---|---|---|
__construct ( array | ArrayObject $levels = [], boolean $bubble = true, boolean $buffer = false ) : |
||
__destruct ( ) | Destructor | |
addProcessor ( mixed $callback, boolean $processBufferRecord = false ) | Add processor to this handler | |
canHandle ( |
Check if this handler can handle the given Record | |
process ( |
Process given record This will pass given record to ProcessorInterface instance, then format the record and output it according to current AbstractHandler instance | |
setFormatter ( Webiny\Component\Logger\Driver\Webiny\Formatter\FormatterInterface $formatter ) | ||
stopHandling ( ) : void |
Stop handling This will be called automatically when the object is destroyed |
Method | Description | |
---|---|---|
getDefaultFormatter ( ) : FormatterAbstract | Get default formatter for this handler | |
processRecord ( |
Processes a record. | |
processRecords ( array $records ) : boolean | Process batch of records | |
write ( |
Writes the record down to the log of the implementing handler |
Method | Description | |
---|---|---|
getFormatter ( ) : Webiny\Component\Logger\Driver\Webiny\Formatter\FormatterInterface |
public __construct ( array | ArrayObject $levels = [], boolean $bubble = true, boolean $buffer = false ) : |
||
$levels | array | ArrayObject | 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 |
$buffer | boolean | |
return | Instance of AbstractHandler |
public addProcessor ( mixed $callback, boolean $processBufferRecord = false ) | ||
$callback | mixed | Callable or instance of ProcessorInterface |
$processBufferRecord | boolean |
abstract protected getDefaultFormatter ( ) : FormatterAbstract | ||
return | FormatterAbstract |
protected processRecord ( |
||
$record | ||
return | Processed Record object |
protected processRecords ( array $records ) : boolean | ||
$records | array | Batch of records to process |
return | boolean | Bubble flag (this either continues propagation of the Record to other handlers, or stops the logger from processing this record any further) |
public setFormatter ( Webiny\Component\Logger\Driver\Webiny\Formatter\FormatterInterface $formatter ) | ||
$formatter | Webiny\Component\Logger\Driver\Webiny\Formatter\FormatterInterface |
public stopHandling ( ) : void | ||
return | void |
protected FormatterInterface,Webiny\Component\Logger\Driver\Webiny\Formatter $formatter | ||
return | Webiny\Component\Logger\Driver\Webiny\Formatter\FormatterInterface |