Method | Description | |
---|---|---|
__construct ( |
||
getNotifier ( ) : |
Get Notifier | |
getRecorder ( ) : |
Get Recorder | |
handle ( Exception $e ) : ExceptionModel | Will execute record and notify methods | |
notify ( Exception $e ) : void | Will send the exception to all monolog handlers | |
pushHandler ( Monolog\Handler\HandlerInterface $handler ) | Pushes on another Monolog Handler | |
record ( Exception $e ) : |
Stores the exception in the database | |
setMessage ( function | string $cb ) | Set a string or a closure to be called that will generate the message body for the notification | |
setNotifier ( |
Set Notifier | |
setRecorder ( |
Set Recorder | |
setSubject ( function | string $cb ) | Set a string or a closure to be called that will generate the subject line for the notification |
public __construct ( |
||
$notifier | Notifier instance | |
$recorder | Recorder instance |
public getNotifier ( ) : |
||
return |
public getRecorder ( ) : |
||
return |
public handle ( Exception $e ) : ExceptionModel | ||
$e | Exception | The exception to use |
return | ExceptionModel | the recorded Eloquent Model |
public pushHandler ( Monolog\Handler\HandlerInterface $handler ) | ||
$handler | Monolog\Handler\HandlerInterface | The handler instance to add on |
public record ( Exception $e ) : |
||
$e | Exception | The exception to use |
return | The recorded Exception as an Eloquent Model |
public setMessage ( function | string $cb ) | ||
$cb | function | string | This closure function will be passed an Exception and must return a string |
public setNotifier ( |
||
$notifier | A Notifier instance to use | |
return |
public setRecorder ( |
||
$recorder | A Recorder instance to use | |
return |
public setSubject ( function | string $cb ) | ||
$cb | function | string | This closure function will be passed an Exception and must return a string |