PHPackages                             hikmadh/log - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. hikmadh/log

ActiveMagento2-module[Admin Panels](/categories/admin)

hikmadh/log
===========

A very lightweight logging module

1.0(2y ago)01MITPHP

Since Dec 5Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Hikmadh/Logging)[ Packagist](https://packagist.org/packages/hikmadh/log)[ Docs](https://redchamps.com/clean-admin-menu-magento-2-extension.html)[ RSS](/packages/hikmadh-log/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Magento Logging
===============

[](#magento-logging)

A very lightweight logging module that supports

- Rest Api Logging
- Elastic Search Logging
- GraphQl Logging
- RabbitMq Logging
- Varnish Cache Tag Bans Logging

No Core files is overridden or modified. These logging are implemented using plugins.

> ### Please note that, This extension is for debugging purpose only, Once enabled this extension will write all/partial request and response to the log file based on your configuration, So plz be advised that keeping this extension on enabled mode for a long time will fill up your disk space. Once the debugging is completed this needs to be disabled
>
> [](#please-note-that-this-extension-is-for-debugging-purpose-only-once-enabled-this-extension-will-write-allpartial-request-and-response-to-the-log-file-based-on-your-configuration-so-plz-be-advised-that-keeping-this-extension-on-enabled-mode-for-a-long-time-will-fill-up-your-disk-space-once-the-debugging-is-completed-this-needs-to-be-disabled)

To Install
----------

[](#to-install)

### For Magento Version &gt;= 2.4.4

[](#for-magento-version--244)

```
composer require hikmadh/magento-log
php bin/magento module:enable Hikmadh_Log
php bin/magento setup:upgrade

```

### For Magento Version &lt; 2.4.4

[](#for-magento-version--244-1)

```
composer require hikmadh/magento-log 1.1.0
php bin/magento module:enable Hikmadh_Log
php bin/magento setup:upgrade

```

#### Supported Logging

[](#supported-logging)

- Rest API Logging
- ElasticSearch Logging

For Magento version less than 2.4.4 if you need support for GraphQl logging plz try the below (Note its not tested from my end you can give a try)

- Add this commit in to your code base
- Post that download the version 2.1.0 directly from git and then put it under the app/code

Warning : This package is not install able via Composer 1.x, please make sure you upgrade to Composer 2+.

Alternatively you can download from github as well

API Logging
-----------

[](#api-logging)

Provides an option to log all/specific api calls.

In most of our environment we use different third party services such as order management, product management, product search , shipping management etc. These services interact with Magento using Rest APi'S.

At times, it would become very difficult to identify the root cause if we face any problem with these services.

Moreover, if we are in headless environment primarily using rest apis it would be really hard to identify the root cause for certain issues.

Consider a scenario where add to cart is not working for a particular customer only.

To effectively debug this issue, we would require the post data, headers etc that is posted by that particular user.

This extension would help you in this scenario. It has the feature that we can log the api request that is made by a specific user.

Let see the complete features of this extension.

[![Rest API logging](https://camo.githubusercontent.com/832cbb33bf28b14da3bfbfc97a3de9e7ceb5f50fdd62a71987137cca07aabc86/68747470733a2f2f68696b6d61646864696e616b6172616e2e636f6d2f77702d636f6e74656e742f75706c6f6164732f323032332f30332f696d6167652d32362d31303234783334332e706e67)](https://camo.githubusercontent.com/832cbb33bf28b14da3bfbfc97a3de9e7ceb5f50fdd62a71987137cca07aabc86/68747470733a2f2f68696b6d61646864696e616b6172616e2e636f6d2f77702d636f6e74656e742f75706c6f6164732f323032332f30332f696d6167652d32362d31303234783334332e706e67)

### Features

[](#features)

Enable or Disable Logging through Admin Configuration

Able to configure the api urls that needs to be logged using regular expression which will give endless opportunity to the developer to log a specific url

Few such ex are

- Able to log all the API logs
- Able to log logged in users API calls
- Able to log guest user API calls
- Able to log only a specific api calls such as custom api call, cart, CMS, Product, Order etc
- Able to log a specific user api calls.
- The API logs contain both the request and Response
- The logs are made in a separate file
- This extension doesn't override any CORE Api class.

This can be safely deployed in Production environment as its very lightweight.

### Configuration

[](#configuration)

Stores -&gt; Configuration -&gt; Hikmadh Extensions -&gt; API Logging

Enable API Logging : To Enable all/selected api calls

Regular Expression Patterns: Define the regular expression pattern to log selected urls, For more than one urls use next line.

Ex

V1/carts/9 : Matches all urls for quote ID 9 that contains V1/carts/9

V1/carts/(\\d)\* : Matches for all quotes

V1/checkoutcomupapi/getTokenList : Match a specific url

Elastic Search Logging
----------------------

[](#elastic-search-logging)

At times there might me a case where you need to find out exactly what data is being pushed to elastic search and what is the response that we receive. This extension will help you to do that. It will log all the request and response of Elasticsearch from Magento.

### Configuration

[](#configuration-1)

Stores -&gt; Configuration -&gt; Hikmadh Extensions -&gt; Elastic Search Logging

### How it works

[](#how-it-works)

The implementation is not very complicated its quiet simple though.

Magento uses the third party api client "elasticsearch/elasticsearch" to interact with Elasticsearch. This Extension by default has the feature of logging the request and responses.

\\Elasticsearch\\Connections\\Connection::logRequestSuccess

But while creating the instance of this elasticsearch model, Magento always set the logger to be NULL due to which the request never get logged. This extension through a plugin sets this logger to a custom logger, Due to which the requests and the response are logged.

GraphQl Logging
---------------

[](#graphql-logging)

To log the GraphQl Request and Response.

### Configuration

[](#configuration-2)

Stores -&gt; Configuration -&gt; Hikmadh Extensions -&gt; Graphql Logging

[![Graphql logging](https://camo.githubusercontent.com/f65a6ca759ec31d79c19cbc270d68bcd1085d82c1a997360f8e3c9795c830d24/68747470733a2f2f68696b6d61646864696e616b6172616e2e636f6d2f77702d636f6e74656e742f75706c6f6164732f323032332f30332f696d6167652d32372d31303234783533302e706e67)](https://camo.githubusercontent.com/f65a6ca759ec31d79c19cbc270d68bcd1085d82c1a997360f8e3c9795c830d24/68747470733a2f2f68696b6d61646864696e616b6172616e2e636f6d2f77702d636f6e74656e742f75706c6f6164732f323032332f30332f696d6167652d32372d31303234783533302e706e67)

### Features

[](#features-1)

- Able to log GET/POST Requests or All Requests
- Able to log Based on HTTP Header Values
- Able to log Based on Query types
    - product : To log only the product query type
    - product,categories : To log both product and categories query types

RabbitMq Logging
----------------

[](#rabbitmq-logging)

To log the RabbitMq Messages that are send from Magento to RabbitMq Server or that are cosumed by Magento from RabbitMq.

### Configuration

[](#configuration-3)

Stores -&gt; Configuration -&gt; Hikmadh Extensions -&gt; RabbitMq Logging

[![RabbitMq logging](https://camo.githubusercontent.com/0eebf66e29793e16160de6d5b7079c206046458bf837fd33ea9c96b9558fc2a4/68747470733a2f2f68696b6d61646864696e616b6172616e2e636f6d2f77702d636f6e74656e742f75706c6f6164732f323032332f30332f696d6167652d32382d31303234783231302e706e67)](https://camo.githubusercontent.com/0eebf66e29793e16160de6d5b7079c206046458bf837fd33ea9c96b9558fc2a4/68747470733a2f2f68696b6d61646864696e616b6172616e2e636f6d2f77702d636f6e74656e742f75706c6f6164732f323032332f30332f696d6167652d32382d31303234783231302e706e67)

### Features

[](#features-2)

- Able to log Outgoing Messages (The Messages that are published to RabbitMq Server)
- Able to log Incoming Messages (The messages that are consumed from RabbitMq Server)

Varnish Cache Tags Logging
--------------------------

[](#varnish-cache-tags-logging)

To log the varnish purge cache tags, To know more on this [please refer here ](https://hikmadhdinakaran.com/magento-2-full-page-caching-with-varnish-in-depth/#Configure_Commerce_to_purge_Varnish)

### Configuration

[](#configuration-4)

Stores -&gt; Configuration -&gt; hikmadh Extensions -&gt; Log Varnish Cache Purging Tags

### Output

[](#output)

Once the Logging is enabled, The log data will be available in the below MAGE\_ROOT/var/log/hikmadh-logging.log

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

892d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dcb3f5d265e930244fd71460a8ba3c3869c53e8d772c0c1c102194d7382331a3?d=identicon)[Hikmadh1](/maintainers/Hikmadh1)

---

Top Contributors

[![Hikmadh](https://avatars.githubusercontent.com/u/151924082?v=4)](https://github.com/Hikmadh "Hikmadh (6 commits)")

---

Tags

phpSettingsconfiguimagentomenuadminmagento2

### Embed Badge

![Health badge](/badges/hikmadh-log/health.svg)

```
[![Health](https://phpackages.com/badges/hikmadh-log/health.svg)](https://phpackages.com/packages/hikmadh-log)
```

###  Alternatives

[redchamps/module-clean-admin-menu

It will merge all third party extensions menu items to single menu item named 'Extensions'.

164416.3k](/packages/redchamps-module-clean-admin-menu)[redchamps/module-easy-cache-clean

Clean invalidated cache(s) easily in a Magento 2 store

2838.0k](/packages/redchamps-module-easy-cache-clean)[vasileuski/magento2-module-admin-search

Magento 2 module that enhances the admin panel's global search by enabling fast and efficient searches through main entities with improved visibility and ACL support.

252.7k](/packages/vasileuski-magento2-module-admin-search)[kiwicommerce/module-customer-password

Magento 2 - Customer Password

1356.3k](/packages/kiwicommerce-module-customer-password)[opengento/module-category-import-export

This module add the capability to import and export the categories from the back-office.

119.1k](/packages/opengento-module-category-import-export)[rockys/ex-admin-thinkphp

Ex-admin-thinkphp 是一个基于Ant Design of Vue + Thinkphp 开发而成后台系统构建工具，无需关注页面模板JavaScript，只用php代码即可快速构建出一个功能完善的后台系统。

163.0k](/packages/rockys-ex-admin-thinkphp)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
