This package extends Laravel’s log package to configure a Monolog driver. As of Laravel 5.6, this package is not required anymore since it’s now natively supported by Laravel.
-
Require this package with composer:
composer require exolnet/laravel-log
-
If you don't use package auto-discovery, add the service provider to the
providers
array inconfig/app.php
:Exolnet\Log\LogServiceProvider::class
-
Add your Monolog host to your
.env
:LOG_MONOLOG_HOST=localhost
When this package is installed and configured, all Laravel exceptions will be forwarded to your Monolog installation.
To ensure that the setup is working properly, trigger an exception and verify that the error was received.
To run the phpUnit tests, please use:
composer test
Please see CONTRIBUTING and CODE OF CONDUCT for details.
If you discover any security related issues, please email security@exolnet.com instead of using the issue tracker.
This code is licensed under the MIT license. Please see the license file for more information.