2017 © Pedro Peláez
 

library laravellogflare

Checks logs on a schedule and emails alerts when errors are found. Stay ahead of your important applications to respond quickly to issues.

image

freemancontingent/laravellogflare

Checks logs on a schedule and emails alerts when errors are found. Stay ahead of your important applications to respond quickly to issues.

  • Thursday, October 20, 2016
  • by seamusdiamond
  • Repository
  • 10 Watchers
  • 2 Stars
  • 1,302 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 7 % Grown

The README.md

laravel-log-flare

Checks logs on a schedule and emails alerts when errors are found. Stay ahead of your important applications to respond quickly to issues., (*1)

License, (*2)

Installation

You can install this package via Composer using:, (*3)

composer require freemancontingent/laravellogflare

You must also install this service provider., (*4)

// config/app.php
'providers' => [
    ...
    Freemancontingent\Laravellogflare\FrllflareServiceProvider::class,
    ...
];

To publish the config file to app/config/logflare.php and the custom email template to resources/views/freemancontingent/logflare/email.blade.php run:, (*5)

php artisan vendor:publish --provider="Freemancontingent\Laravellogflare\FrllflareServiceProvider"

This will publish a file app/config/logflare.php in your config directory with the following contents:, (*6)

return [

    /*
    |--------------------------------------------------------------------------
    | Default Monolog Level check
    |--------------------------------------------------------------------------
    |
    | Here you may specify the default Monolog levels that should be used
    | by the Laravel Log Flare.
    |
    | Supported: debug, info, notice, warning, error, critical, alert, emergency
    |
    */

    'level' => ['error','critical'],

    /*
    |--------------------------------------------------------------------------
    | Support email address
    |--------------------------------------------------------------------------
    |
    | Email address to receive the report.
    |
    |
    */

    'support_email' => '',

    /*
    |--------------------------------------------------------------------------
    | Support email name
    |--------------------------------------------------------------------------
    |
    | Email name
    |
    |
    */

    'support_email_name' => '',

    /*
    |--------------------------------------------------------------------------
    | Email subject
    |--------------------------------------------------------------------------
    |
    | Flare email subject
    |
    */

    'subject' => '',

    /*
    |--------------------------------------------------------------------------
    | Log viewer link
    |--------------------------------------------------------------------------
    |
    | Add inside the email template the link to view all log.
    |
    |
    */

    'log_viewer_link' => '',

    /*
    |--------------------------------------------------------------------------
    | Print info logs
    |--------------------------------------------------------------------------
    |
    | Print info logs when the function is called.
    |
    | Supported: true,false
    |
    */

    'log' => true,

    /*
    |--------------------------------------------------------------------------
    | Use custom email template
    |--------------------------------------------------------------------------
    |
    | Use custom email template inside freemancontingent/logsflare/
    |
    | Supported: true, false
    |
    */

    'custom_email_template' => false,
];

Usage

After you've installed the package and filled in the values in the config-file working with this package will be a breeze. All the following examples use the facade. Don't forget to import it at the top of your schedule file app/Console/Kernel.php., (*7)

use Freemancontingent\Laravellogflare\Flare;
...
$schedule->call(function(){
            $flare = new Flare();
            $flare->firing();
         })->cron('00 07 * * *');
...         

Contributing

Please see CONTRIBUTING for details., (*8)

Credits

License

The Log Flare is open-sourced software licensed under the MIT license., (*9)

The Versions

20/10 2016

dev-master

9999999-dev

Checks logs on a schedule and emails alerts when errors are found. Stay ahead of your important applications to respond quickly to issues.

  Sources   Download

MIT

The Requires

 

by Denis Oliveira
by Freemancontingent

laravel log email

20/10 2016

v1.1

1.1.0.0

Checks logs on a schedule and emails alerts when errors are found. Stay ahead of your important applications to respond quickly to issues.

  Sources   Download

MIT

The Requires

 

by Denis Oliveira
by Freemancontingent

laravel log email

20/10 2016

v1.0

1.0.0.0

Checks logs on a schedule and emails alerts when errors are found. Stay ahead of your important applications to respond quickly to issues.

  Sources   Download

MIT

The Requires

 

by Denis Oliveira
by Freemancontingent

laravel log email