soluzione-software/laravel-email-logging

Email logging driver for Laravel.

0.3.1 2021-05-19 15:18 UTC

This package is auto-updated.

Last update: 2024-09-19 22:16:20 UTC


README

Latest Version MIT License

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