tomatophp / tomato-user-activities
Advanced logger to save user activities from requests
Fund package maintenance!
3x1io
Installs: 77
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^8.1|^8.2
- ext-json: *
- illuminate/http: ^9.0|^10.0|^11.0
- illuminate/support: ^9.0|^10.0|^11.0
- monolog/monolog: ^2.9|^3.6
Requires (Dev)
- laravel/framework: ^9.0|^10.0|^11.0
- orchestra/testbench: ^9.0
- phpunit/phpunit: ^9.5|^10.0|^11.0
README
Tomato User Activities
Advanced logger is a laravel package used to automatically log every request made to you laravel application. Each request is also identified by hash, which can be used in standard log to identify the request.
This package has been inspired by package https://github.com/andersao/laravel-request-logger from Anderson Andrade.
Installation
composer require tomatophp/tomato-user-activities
Configuration
All options are described in config/tomato-user-activities.php
.
Using request hash in standard log file in Laravel 5.7
If you would like to have request identifier in you standard log, to match log events with request you could add to config/logging.php
'tap' => [TomatoPHP\TomatoUserActivities\LogCustomizers\HashLogCustomizer::class],
to daily
channel. The resulted code should looks like
'channels' => [ ... 'daily' => [ 'driver' => 'daily', 'path' => storage_path('logs/laravel.log'), 'level' => 'debug', 'days' => 14, 'tap' => [TomatoPHP\TomatoUserActivities\LogCustomizers\HashLogCustomizer::class], ], ... ],
This log modifier can be used also in other channels, however it uses extended LineFormatter
.
Support
you can join our discord server to get support TomatoPHP
Docs
you can check docs of this package on Docs
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.