tswtools / logx
Display the class name and method name in the laravel log
Requires
- illuminate/support: 5.6.*|5.7.*|5.8.*
Requires (Dev)
- orchestra/testbench: ^3.5|^4.0|^5.0
- phpunit/phpunit: ~6.0
This package is auto-updated.
Last update: 2024-09-25 13:21:02 UTC
README
Display the class name and method name in the laravel log, at the same time, it can conveniently display all kinds of data including JSON, array, etc. Take a look at contributing.md to see a to do list.
Installation
Via Composer
$ composer require tswtools/logx
Usage
Then run these commands to publish assets and configļ¼
php artisan vendor:publish --provider="Tswtools\Logx\LogxServiceProvider"
Config
Filters allow you to filter specified classes or methods
Specify the IP address that can be recorded config/logx/ip: include : x.x.x.x exclude : x.x.x.x Specify the class or method that can be recorded config/logx/method: include : XxxxController,XyyyController::*,*::index,show exclude : XxxxController,XxxxController::*,*::index,show '*' means that every class or method is OK
log format
[time][ip][class::method][line] log text.
example:
[2020-12-25 13:09:50][127.0.0.1[TestController::index][26] "data1":{"a":1,"b":2} [2020-12-25 13:10:36][127.0.0.1[TestController::index][25] "data2":[{"a":1,"b":2}]
Change log
Please see the changelog for more information on what has changed recently.
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email author email instead of using the issue tracker.
Credits
License
license. Please see the license file for more information.