exolnet / laravel-log
This package extends Laravel’s log package to configure a Monolog driver
Requires
- php: ^7.2
- graylog2/gelf-php: ^1.5
- illuminate/contracts: 5.5.*|5.6.*|5.7.*|5.8.*|^6.0
- illuminate/log: 5.5.*|5.6.*|5.7.*|5.8.*|^6.0
- illuminate/support: 5.5.*|5.6.*|5.7.*|5.8.*|^6.0
Requires (Dev)
- mockery/mockery: ^1.3
- orchestra/testbench: ^3.5|^4.0
- phpunit/phpunit: ^6.5
- squizlabs/php_codesniffer: ^3.3.2
README
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.
Installation
-
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
Usage
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.
Testing
To run the phpUnit tests, please use:
composer test
Contributing
Please see CONTRIBUTING and CODE OF CONDUCT for details.
Security
If you discover any security related issues, please email security@exolnet.com instead of using the issue tracker.
Credits
License
This code is licensed under the MIT license. Please see the license file for more information.