PHPackages                             flancer32/mage2\_ext\_log\_api - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. flancer32/mage2\_ext\_log\_api

ActiveMagento2-module[Logging &amp; Monitoring](/categories/logging)

flancer32/mage2\_ext\_log\_api
==============================

Magento 2 activities logger (API, JS errors)

0.2.1(6y ago)628.1k↓35%1GPL-3.0-onlyPHPPHP &gt;=7.1

Since Sep 5Pushed 6y ago2 watchersCompare

[ Source](https://github.com/flancer32/mage2_ext_log_api)[ Packagist](https://packagist.org/packages/flancer32/mage2_ext_log_api)[ Docs](https://github.com/flancer32/mage2_ext_log_api)[ RSS](/packages/flancer32-mage2-ext-log-api/feed)WikiDiscussions master Synced 1mo ago

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

mage2\_ext\_log\_api
====================

[](#mage2_ext_log_api)

Add ability to log:

- REST API requests/responses to server side logs.
- client side JS errors to browser's local storage (with ability to display these errors on the special page).

Compatible Magento versions: **2.2.x, 2.3.x**.

### REST API Sample

[](#rest-api-sample)

See logs in `${MAGE_ROOT}/var/log/api.log`:

```
2018-09-05 15:08:57-API.INFO - Route: '/rest/ru/V1/guest-carts/fe9cf0d8828fcb219484b39c12b8cdb7/estimate-shipping-methods' => '/V1/guest-carts/fe9cf0d8828fcb219484b39c12b8cdb7/estimate-shipping-methods'
2018-09-05 15:08:57-API.INFO - Request: {"address":{"region_id":null,"country_id":"US","postcode":null},"cartId":"fe9cf0d8828fcb219484b39c12b8cdb7"}
2018-09-05 15:08:57-API.INFO - Response 'Magento\Quote\Api\GuestShipmentEstimationInterface::estimateByExtendedAddress()': [{"carrier_code":"flatrate","method_code":"flatrate","carrier_title":"Flat Rate","method_title":"Fixed","amount":2000,"base_amount":2000,"available":true,"error_message":"","price_excl_tax":2000,"price_incl_tax":2000}]

```

### Frontend Sample

[](#frontend-sample)

[![front js view](./etc/docs/img/front_js_error.png)](./etc/docs/img/front_js_error.png)

Go to `http://.../fl32log/js/view/`:

[![front js view](./etc/docs/img/front_js_view.png)](./etc/docs/img/front_js_view.png)

Module Configuration
--------------------

[](#module-configuration)

### Enable additional logging

[](#enable-additional-logging)

See `Store / Configuration / Advanced / System / Advanced Logging Settings`:

[![store config](./etc/docs/img/store_config.png)](./etc/docs/img/store_config.png)

### Disable "Log JS Errors to Session Storage"

[](#disable-log-js-errors-to-session-storage)

You need to disable "Log JS Errors to Session Storage" that is used for Magento tests (disabled by default). See `Store / Configuration / Advanced / Developer / JavaScript Settings / Log JS Errors to Session Storage`:

[![store config disable](./etc/docs/img/store_config_disable.png)](./etc/docs/img/store_config_disable.png)

Attention: section `Store / Configuration / Advanced / Developer` is available in `developer` mode only:

```
$ ./bin/magento deploy:mode:set developer
```

Installation
------------

[](#installation)

```
$ cd ${MAGE_ROOT}
$ composer require flancer32/mage2_ext_log_api
$ ./bin/magento module:enable Flancer32_LogApi
```

if Magento is in `development` mode:

```
$ ./bin/magento setup:upgrade
$ ./bin/magento setup:di:compile
```

if Magento is in `production` mode:

```
$ ./bin/magento deploy:mode:set developer
$ ./bin/magento deploy:mode:set production
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% 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

Every ~267 days

Total

3

Last Release

2277d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/07bb40a69e92ed863491150ef62c1b1ccc942c11e657e53f94ecef9c2c6f4189?d=identicon)[flancer32](/maintainers/flancer32)

---

Top Contributors

[![flancer64](https://avatars.githubusercontent.com/u/5052385?v=4)](https://github.com/flancer64 "flancer64 (9 commits)")[![espressobytes](https://avatars.githubusercontent.com/u/3527116?v=4)](https://github.com/espressobytes "espressobytes (1 commits)")

---

Tags

developer-toolsloggingmagento2-module

### Embed Badge

![Health badge](/badges/flancer32-mage2-ext-log-api/health.svg)

```
[![Health](https://phpackages.com/badges/flancer32-mage2-ext-log-api/health.svg)](https://phpackages.com/packages/flancer32-mage2-ext-log-api)
```

###  Alternatives

[symfony/monolog-bridge

Provides integration for Monolog with various Symfony components

2.6k189.7M258](/packages/symfony-monolog-bridge)[rollbar/rollbar

Monitors errors and exceptions and reports them to Rollbar

33723.7M82](/packages/rollbar-rollbar)[illuminate/log

The Illuminate Log package.

6224.3M518](/packages/illuminate-log)[honeybadger-io/honeybadger-php

Honeybadger PHP library

381.5M4](/packages/honeybadger-io-honeybadger-php)[graycore/magento2-stdlogging

A Magento 2 module that changes all logging handlers to stdout

2382.6k](/packages/graycore-magento2-stdlogging)

PHPackages © 2026

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