Laravel Rlog's logging system helps a lot for storing data as well as while troubleshooting some hidden bugs. The data related to the exception automatically gets logged whenever something goes wrong.
- PHP 7.1+
- Laravel 5.6+
- Install the package by running this command in your terminal/cmd:
composer require rockers/plaid-stripe
- Add this package's LogEnhancer class to the tap option of your log channel in config/logging.php:
'production_stack' => [
'driver' => 'stack',
'tap' => [Rockers\PlaidStripe\PlaidStripe::class],
'channels' => ['daily', 'slack'],
],
Optionally, you can import config file by running this command in your terminal/cmd:
php artisan vendor:publish --tag=laravel-rlog-config
It has following configuration settings:
-
(bool) log_request_details => Set to true if you wish to log request data. Reference
-
(bool) log_input_data => Set to true if you wish to log user input data
-
(bool) log_request_headers => Set to true if you wish to log request headers
-
(bool) log_session_data => Set to true if you wish to log session data
-
(bool) log_memory_usage => Set to true if you wish to log memory usage Reference
-
(bool) log_git_data => Set to true if you wish to log git branch and commit details Reference
-
(array) ignore_input_fields => If input data is being sent, you can specify the inputs from the user that should not be logged. for example, password,cc number, etc.
- Raksh Patel - Initial work
This project is licensed under the MIT License - see the LICENSE file for details
- Laravel Community