vladflonta / magento2-webapi-log
用于记录webapi REST请求的日志器。
1.0.1
2022-12-10 11:25 UTC
Requires
- magento/framework: ^103.0.4
- magento/module-webapi: >=100.0.2
This package is auto-updated.
Last update: 2024-09-10 14:59:43 UTC
README
这是一个用于在var/log/webapi_rest/文件夹中以文本文件形式记录所有REST API请求的Magento模块。
安装步骤
-
通过composer获取模块
composer require "vladflonta/magento2-webapi-log":"~0"
或通过git
git clone https://github.com/vladflonta/magento2-webapi-log app/code/VladFlonta/WebApiLog
-
启用模块
bin/magento module:enable VladFlonta_WebApiLog
bin/magento setup:upgrade
用法
该模块根据REST路由将请求记录到var/log/webapi_rest/的子文件夹中。
示例:var/log/webapi_rest/integration/admin/token/20181213_082324.log
注意:为了防止安全漏洞,认证请求不包含正文/响应。
许可
本项目采用开放软件许可证(OSL 3.0)。