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(10mo ago)186.5k—1.4%21MITPHPPHP ^8.1CI passing

Since Jun 26Pushed 10mo 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 1mo 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

47

—

FairBetter than 94% of packages

Maintenance54

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

312d 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

[justbetter/magento2-sentry

Magento 2 Logger for Sentry

1851.5M3](/packages/justbetter-magento2-sentry)[graycore/magento2-stdlogging

A Magento 2 module that changes all logging handlers to stdout

2382.6k](/packages/graycore-magento2-stdlogging)[itonomy/module-admin-activity

A continuation of The Admin Activity extension by KiwiCommerce. This extension makes it easy to track all admin activity and revert the modification.

1270.4k](/packages/itonomy-module-admin-activity)[ampersand/magento2-log-correlation-id

Magento 2 correlation id for requests and logs

279.9k](/packages/ampersand-magento2-log-correlation-id)[mage-os/module-admin-activity-log

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

261.4k](/packages/mage-os-module-admin-activity-log)[graycore/magento2-graphql-logger

106.6k](/packages/graycore-magento2-graphql-logger)

PHPackages © 2026

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