added email logging
This commit is contained in:
@@ -126,6 +126,16 @@ return [
|
|||||||
'emergency' => [
|
'emergency' => [
|
||||||
'path' => storage_path('logs/laravel.log'),
|
'path' => storage_path('logs/laravel.log'),
|
||||||
],
|
],
|
||||||
|
|
||||||
|
'email' => [
|
||||||
|
'driver' => 'monolog',
|
||||||
|
'handler' => Monolog\Handler\NativeMailerHandler::class,
|
||||||
|
'with' => [
|
||||||
|
'to' => 'webmaster@stemmechanics.com.au',
|
||||||
|
'subject' => 'Laravel Error',
|
||||||
|
],
|
||||||
|
'level' => 'info', // Set the log level you want to be emailed (e.g., 'error', 'warning', 'info', etc.).
|
||||||
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user