updateddata/laravel-request-logger
最新稳定版本:v0.1.7
Composer 安装命令:
composer require updateddata/laravel-request-logger
包简介
Logs Laravel HTTP Requests
README 文档
README
This package logs all http-Request. It also optionally saves attached files and also optionally compresses them.
Installation:
- Require the package
composer require updateddata/laravel-request-logger
- Publish the assets
php artisan vendor:publish --provider="UpdatedData\LaravelRequestLogger\RequestLoggerServiceProvider"
Config:
All variables can either be set as ENV vars or in config/request-logger.php
| Name | Default | Effect |
|---|---|---|
| REQUEST_LOGGER_ENABLED | true | Enables or disables logging |
| REQUEST_LOGGER_DRIVER | database | Defines how the logging should be done |
| REQUEST_LOGGER_RETENTION | 14 | Defines how long the logs should be kept. Set to 0 for indefinetly |
| REQUEST_LOGGER_STORE_ATTACHMENTS | false | Enables persistence for uploaded files |
| REQUEST_LOGGER_COMPRESSION_ENABLED | false | Enables compression for uploaded files. |
| REQUEST_LOGGER_COMPRESSION_COMPRESSOR | gz | Compressionalgorith. For now only gz is supported |
Security notice
Logging files should only be enabled for specific endpoints. Yet that feature is not implemented
统计信息
- 总下载量: 3.87k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-10-01