PHPackages                             phpro/mage2-module-logger-handler - 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. phpro/mage2-module-logger-handler

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

phpro/mage2-module-logger-handler
=================================

This module allows you to easily configure custom log files

5.0.0(11mo ago)196.9k↓23.7%21MITPHPPHP ^8.1CI passing

Since Jun 26Pushed 11mo ago5 watchersCompare

[ Source](https://github.com/phpro/phpro-mage2-module-logger-handler)[ Packagist](https://packagist.org/packages/phpro/mage2-module-logger-handler)[ RSS](/packages/phpro-mage2-module-logger-handler/feed)WikiDiscussions master Synced 2d ago

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

[![](https://github.com/phpro/phpro-mage2-module-logger-handler/workflows/.github/workflows/grumphp.yml/badge.svg)](https://github.com/phpro/phpro-mage2-module-logger-handler/workflows/.github/workflows/grumphp.yml/badge.svg)

Logger Handler for Magento 2
============================

[](#logger-handler-for-magento-2)

This module allows you to easily configure custom log files. Especially useful when building several integrations, each requiring a separate log file.

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

[](#installation)

`composer require phpro/mage2-module-logger-handler`

How to use
----------

[](#how-to-use)

This module is only a basic building block. You can build on top of this to create custom log files in your projects. Below you can find an example implementation.

### Stores configuration

[](#stores-configuration)

To use a custom log file, you can add the following to the system config. This module also provides a source model for the log levels.

```

                    Log File Name

                    Log Level
                    Phpro\LoggerHandler\Config\LogLevelsSource

```

### Configuration class

[](#configuration-class)

You will need to create a Configuration class which implements the LogConfiguration interface. This Configuration class will be used by the Logger Handler.

This is an example of a Configuration class which uses the stores configuration defined above.

```

            Vendor\Module\Config\SystemConfiguration

            [module-logtype]-logger

                [vendor_module_logtype]_logger_handler

            [vendor_module_logtype]_logger

```

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance50

Moderate activity, may be stable

Popularity34

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 72.7% 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 ~613 days

Total

4

Last Release

359d ago

Major Versions

2.0.0 → 3.0.02020-08-28

3.0.0 → 4.0.02022-05-18

4.0.0 → 5.0.02025-07-10

PHP version history (3 changes)2.0.0PHP ^7.0

4.0.0PHP ^7.0|^8.1

5.0.0PHP ^8.1

### Community

Maintainers

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

---

Top Contributors

[![BrentRobert](https://avatars.githubusercontent.com/u/6866325?v=4)](https://github.com/BrentRobert "BrentRobert (8 commits)")[![vrielsa](https://avatars.githubusercontent.com/u/33426821?v=4)](https://github.com/vrielsa "vrielsa (2 commits)")[![jokeputs](https://avatars.githubusercontent.com/u/5744027?v=4)](https://github.com/jokeputs "jokeputs (1 commits)")

### Embed Badge

![Health badge](/badges/phpro-mage2-module-logger-handler/health.svg)

```
[![Health](https://phpackages.com/badges/phpro-mage2-module-logger-handler/health.svg)](https://phpackages.com/packages/phpro-mage2-module-logger-handler)
```

###  Alternatives

[graycore/magento2-stdlogging

A Magento 2 module that changes all logging handlers to stdout

2587.9k](/packages/graycore-magento2-stdlogging)[mage-os/module-admin-activity-log

The Admin Activity extension makes it easy to track all admin activity with comprehensive audit logging.

296.3k](/packages/mage-os-module-admin-activity-log)[fredden/magento2-module-javascript-error-reporting

A Magento 2 module which captures JavaScript errors for later review by website administrators

3139.8k](/packages/fredden-magento2-module-javascript-error-reporting)[myparcelnl/magento

A Magento 2 module that creates MyParcel labels

1860.2k](/packages/myparcelnl-magento)[graycore/magento2-graphql-logger

118.0k](/packages/graycore-magento2-graphql-logger)[loki/magento2-components

Core module for defining Alpine.js components with advanced AJAX features

1011.8k26](/packages/loki-magento2-components)

PHPackages © 2026

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