mamitech/laravel-http-logger

Mamitech Laravel HTTP Logger

v2.1 2023-11-16 09:15 UTC

This package is auto-updated.

Last update: 2024-09-16 10:57:57 UTC


README

将所有HTTP请求记录到所选日志通道中,以符合Elastic Common Sheme格式的数据。

安装

mamitech/laravel-http-logger 添加到 composer.json

config/app.phpproviders 数组中注册服务提供者

'providers' => [
    // ...
    Mamitech\LaravelHTTPLogger::class,
    // ...
],

发布配置

todo

在配置中设置日志通道,以便将HTTP日志发送到您想要的位置。

todo

用法

一旦将服务提供者和中间件添加到您的Laravel应用程序中,所有HTTP请求都应该记录到您选择的日志通道。

测试

运行

./vendor/bin/phpunit

致谢

许可证

MIT许可证(MIT)。有关更多信息,请参阅许可证文件