eventix/requestlog

提供中间件,将完整的请求和响应日志记录到某些存储实例。

dev-master 2016-12-16 13:59 UTC

This package is auto-updated.

Last update: 2024-09-18 02:56:03 UTC


README

确保 Elasticsearch 正在运行,并且存在一个 requests 索引(对于 Eventix 团队:https://bitbucket.org/eventix/eventix-3.0/wiki/Request%20Logging%20/%20Elasticsearch

Eventix\RequestLog\RequestLogServiceProvider::class 添加到 config/app.php 中的 (ServiceProviders) 部分,将 \Eventix\RequestLog\Middleware\RequestLogMiddleware::class 添加到 app/http/Kernel.php 中的全局中间件部分

添加到您的 .env 文件中

REQUEST_LOG_HOST=localhost:9200
REQUEST_LOG=true