vladflonta/magento2-webapi-log

Logger for webapi REST requests.

Installs: 86 235

Dependents: 0

Suggesters: 0

Security: 0

Stars: 38

Watchers: 1

Forks: 13

Open Issues: 2

Type:magento2-module

1.0.1 2022-12-10 11:25 UTC

This package is auto-updated.

Last update: 2024-04-10 14:11:25 UTC


README

A Magento module for logging all REST API requests as text files in var/log/webapi_rest/ folder.

Installation steps

  1. Get the module via composer

    composer require "vladflonta/magento2-webapi-log":"~0"
    

    or via git

    git clone https://github.com/vladflonta/magento2-webapi-log app/code/VladFlonta/WebApiLog
    
  2. Enable module

bin/magento module:enable VladFlonta_WebApiLog
bin/magento setup:upgrade

Usage

The modules logs requests to subfolders in the var/log/webapi_rest according to the REST route.

Example: var/log/webapi_rest/integration/admin/token/20181213_082324.log

Remark: Auth requests do not contain body / response to avoid a security breach.

License

This project is licensed under the Open Software License (OSL 3.0)