PHPackages                             bydn/improved-logger - 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. bydn/improved-logger

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

bydn/improved-logger
====================

Improved Logger

1.0.2(2mo ago)048↓50%1MITPHPPHP &gt;=8.1

Since Nov 12Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/danidnm/ByDN-Magento-Improved-Logger)[ Packagist](https://packagist.org/packages/bydn/improved-logger)[ RSS](/packages/bydn-improved-logger/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

Bydn\_ImprovedLogger for Magento 2
==================================

[](#bydn_improvedlogger-for-magento-2)

`Bydn_ImprovedLogger` is a Magento 2 module designed to enhance system logging by providing contextual information and real-time alerts. It uses Monolog processors and handlers to enrich log data and send notifications via Email and Telegram.

Features
--------

[](#features)

### 1. Extended Log Information

[](#1-extended-log-information)

The module adds useful metadata to every log entry, making debugging significantly easier by identifying exactly where and how a log was generated.

- **IP Addresses**: Adds Remote IP, Server IP, and Client IP.
- **Request URL**: Records the full browser URL where the log occurred.
- **Controller Info**: Includes the module, controller, and action name.
- **Trace Info**: Automatically detects the exact file and line number that called the logger.

### 2. Real-time Notifications

[](#2-real-time-notifications)

Stay informed about critical system issues as they happen.

- **Email Alerts**: Sends log details to configured email addresses.
- **Telegram Notifications**: Pushes alerts directly to a Telegram chat via Bot API.
- **Filtered Alerts**: By default, notifications are triggered for **Critical** and **Emergency** log levels.

Configuration
-------------

[](#configuration)

Navigate to `Stores > Configuration > Utilities (by DN) > Improved Logger` to manage the module settings.

### Log Files Extra Info

[](#log-files-extra-info)

- **Enable extra info**: Global toggle for log enrichment.
- **Add IP info**: Toggle IP address logging.
- **Add browser URL**: Toggle current URL logging.
- **Add controller info**: Toggle Magento request metadata.
- **Add caller info**: Toggle file/line trace (Note: small performance impact).

### Notifications (Email &amp; Telegram)

[](#notifications-email--telegram)

- **Email/Telegram Enable**: Toggle the respective notification service.
- **Credentials**: Configure Email destinations or Telegram Bot Token and Chat ID.
- **Exception Logging**: (Optional) Send all `exception.log` records via the selected channel.

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

[](#installation)

```
composer require bydn/improved-logger
bin/magento module:enable Bydn_ImprovedLogger
bin/magento setup:upgrade
bin/magento cache:flush
```

---

Technical Overview
------------------

[](#technical-overview)

- **Processor**: `Bydn\ImprovedLogger\Processor\Extrainfo` implements a Monolog processor to inject data into the `$record->extra` array.
- **Handler**: `Bydn\ImprovedLogger\Handler\Notification` is a custom Monolog handler that intercepts log records and triggers notification models.
- **Plugin**: A plugin on `Magento\Framework\Logger\Monolog` ensures the custom handler is correctly pushed into the Monolog stack.

Note

This module is designed with extensibility in mind, allowing for easy addition of new notification channels or data processors.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance86

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

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

Every ~239 days

Total

3

Last Release

74d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0577c90cea9f514cbf2bf22ac754b49c4d5f178298e7f3990c944a5374afc373?d=identicon)[danidnm](/maintainers/danidnm)

---

Top Contributors

[![danidnm](https://avatars.githubusercontent.com/u/130283670?v=4)](https://github.com/danidnm "danidnm (16 commits)")

### Embed Badge

![Health badge](/badges/bydn-improved-logger/health.svg)

```
[![Health](https://phpackages.com/badges/bydn-improved-logger/health.svg)](https://phpackages.com/packages/bydn-improved-logger)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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