added email logging

This commit is contained in:
2023-07-27 19:47:09 +10:00
parent 4f505cd155
commit 242fb9dda0

View File

@@ -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.).
],
], ],
]; ];