DatabaseHandler extends AbstractProcessingHandler
Monolog handler for storing the record to a database.
Tags
Table of Contents
$classMapper | ClassMapper | |
---|---|---|
$modelIdentifier | string | |
__construct() | Create a new DatabaseHandler object. | mixed |
write() | {@inheritdoc} | mixed |
Properties
$classMapper
protected
ClassMapper
$classMapper
$modelIdentifier
protected
string
$modelIdentifier
Methods
__construct()
Create a new DatabaseHandler object.
public
__construct(
$classMapper :
ClassMapper
, $modelIdentifier :
string
[, $level :
int
= Logger::DEBUG ]
[, $bubble :
bool
= true ]
)
: mixed
Parameters
- $classMapper : ClassMapper
Maps the modelIdentifier to the specific Eloquent model.
- $modelIdentifier : string
- $level : int = Logger::DEBUG
The minimum logging level at which this handler will be triggered
- $bubble : bool = true
Whether the messages that are handled can bubble up the stack or not
Return values
mixedwrite()
{@inheritdoc}
protected
write(
$record :
array
)
: mixed
Parameters
- $record : array