laravel-email-logging maintained by soluzione-software
Description
Email logging driver for Laravel.
Author
Last update
2021/05/19 17:18
(dev-master)
License
Downloads
1 028
Laravel Email Logging
Adds the email driver for logging.
Installation and usage
composer require soluzione-software/laravel-email-logging
create channel config in config/logging.php:
return [
//...
'channels' => [
//...
'email' => [
'driver' => 'email',
],
],
];
Then you can do like follows:
Illuminate\Support\Facades\Log::channel('email')->error('...');
Configuration
See Laravel documentation for configuring channels.
In order to disable email sending, set null value for to option, like follows:
return [
//...
'channels' => [
//...
'email' => [
//...
'to' => null,
],
],
];
Available Configuration Options
| Name | Default |
|---|---|
level |
error |
to |
null |
from.address |
see config mail.from.address |
from.name |
see config mail.from.name |