All Projects → designmynight → laravel-log-mailer

designmynight / laravel-log-mailer

Licence: MIT license
A package to support logging via email in Laravel

Programming Languages

PHP
23972 projects - #3 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to laravel-log-mailer

slim-skeleton
Slim Framework skeleton application following MVC construction
Stars: ✭ 18 (+28.57%)
Mutual labels:  monolog
monolog-gdpr
Some Monolog processors that help with GDPR compliance
Stars: ✭ 49 (+250%)
Mutual labels:  monolog
yii2-monolog
Yii 2 Monolog extension
Stars: ✭ 39 (+178.57%)
Mutual labels:  monolog
laravel-horizon-rabbitmq
A package to get RabbitMQ working with Laravel Horizon
Stars: ✭ 20 (+42.86%)
Mutual labels:  other
Monolog Bundle
Symfony Monolog Bundle
Stars: ✭ 2,532 (+17985.71%)
Mutual labels:  monolog
Easy Log Handler
Human-friendly log files that make you more productive
Stars: ✭ 2,070 (+14685.71%)
Mutual labels:  monolog
Monolog Bridge
Provides integration for Monolog with various Symfony components.
Stars: ✭ 2,238 (+15885.71%)
Mutual labels:  monolog
logger
A Monolog-based logging tool for WordPress. Supports storing log message in a custom post type or in individual posts and terms.
Stars: ✭ 20 (+42.86%)
Mutual labels:  monolog
enlite-monolog
Monolog integration to Laminas
Stars: ✭ 17 (+21.43%)
Mutual labels:  monolog
monolog-http
A collection of monolog handlers that use a PSR-18 HTTP Client to send your logs
Stars: ✭ 34 (+142.86%)
Mutual labels:  monolog
monolog-sentry-handler
Monolog handler for Sentry PHP SDK v2 with breadcrumbs support
Stars: ✭ 34 (+142.86%)
Mutual labels:  monolog
REST-Api-with-Slim-PHP
REST API with PHP Slim Framework 3 and MySQL
Stars: ✭ 69 (+392.86%)
Mutual labels:  monolog
monolog-google-cloud-json-formatter
A Monolog extension for formatting log entries for Google Cloud Logging
Stars: ✭ 15 (+7.14%)
Mutual labels:  monolog
app
Buggregator is a beautiful, lightweight debug server build on Laravel that helps you catch your smpt, sentry, var-dump, monolog, ray outputs. It runs without installation on multiple platforms.
Stars: ✭ 259 (+1750%)
Mutual labels:  monolog
codeigniter-monolog-plus
codeigniter monolog plus
Stars: ✭ 13 (-7.14%)
Mutual labels:  monolog
monolog-telegram-handler
Monolog handler to send log by Telegram
Stars: ✭ 32 (+128.57%)
Mutual labels:  monolog
extension.vsix
Some Visual Studio Code Extensions...
Stars: ✭ 19 (+35.71%)
Mutual labels:  other

Laravel Mail Logger

Latest Stable Version Total Downloads StyleCI License: MIT

A service provider to add support for logging via email using Laravels built-in mail provider

image

Table of contents

Installation

Installation using composer:

composer require designmynight/laravel-log-mailer

Laravel version Compatibility

Laravel Package
5.6.x 1.0.x

And add the service provider in config/app.php:

DesignMyNight\Laravel\Logging\MailableLogServiceProvider::class,

For usage with Lumen, add the service provider in bootstrap/app.php.

$app->register(DesignMyNight\Laravel\Logging\MailableLogServiceProvider::class);

Configuration

Most configuration options can be automatically populated by environment variables or in config/mailablelog.php, to generate it run php artisan vendor:publish.

To ensure all unhandled exceptions are mailed, set up a mail logging channel and add it to your logging stack in config/logging.php:

'channels' => [
    'stack' => [
        'driver' => 'stack',
        // Add mail to the stack:
        'channels' => ['single', 'mail'],
    ],

    // ...

    // Create a mail logging channel:
    'mail' => [
        'driver' => 'mail',
        // Specify who to mail the log to
        'to' => [
            [
                'address' => '[email protected]',
                'name' => 'Error'
            ]
        ],
        // Optionally specify who the log mail was sent by
        // This is overidable in config/mailablelog.php and
        // falls back to your global from in config/mail.php
        'from' => [
            'address' => '[email protected]',
            'name' => 'Errors'
        ],
        // Optionally overwrite the mailable template
        // 'mailable' => NewLogMailable::class
    ],
],

You can specify multiple channels and change the recipients and customise the email template per channel.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].