sammaye/monolog-laravel-swiftmailer-handler

A Swiftmailer handler for Monolog for use with Laravel

dev-master 2020-07-02 16:17 UTC

This package is auto-updated.

Last update: 2024-11-29 05:33:19 UTC


README

A handler to bridge Laravel, Monolog and Swiftmailer.

To use it simply include it as a log channel:

'email' => [
    'driver' => 'custom',
    'via' => \sammaye\MonologSwiftMailerHandler\Handler::class,
    'from' => [
        'address' => env('MAIL_LOG_FROM_ADDRESS', 'hello@example.com'),
        'name' => env('MAIL_LOG_FROM_NAME', 'Example'),
    ],
    'to' => env('MAIL_LOG_EMAIL_ADDRESS', 'hello@example.com'),
],

As simple as that.