PHPackages                             wearejh/m2-module-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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. wearejh/m2-module-logger

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

wearejh/m2-module-logger
========================

Logger Module for Magento 2

1.0.4(2mo ago)0788↓33.3%[1 PRs](https://github.com/WeareJH/m2-module-logger/pulls)PHP

Since Sep 1Pushed 2mo ago9 watchersCompare

[ Source](https://github.com/WeareJH/m2-module-logger)[ Packagist](https://packagist.org/packages/wearejh/m2-module-logger)[ RSS](/packages/wearejh-m2-module-logger/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)DependenciesVersions (10)Used By (0)

Logger Module
=============

[](#logger-module)

Overview
--------

[](#overview)

This module was created to extend the core log functionality with database storage.

### Raising an event

[](#raising-an-event)

```
    public function addEvent(
        string $type,
        string $message = '',
        string $identifierLabel = '',
        string $identifierValue = '',
        int $severity = 1,
        bool $createIssue = true,
        \Exception $exception = null
    ): bool;

```

which comes from `\Jh\Logger\Api\LoggerManagementInterface`, which can be injected into constructor and used like the following

```
    public function __construct(
        LoggerManagementInterface $loggerManagement,
    ) {
        $this->loggerManagement = $loggerManagement;
    }

```

and then can be used `this->loggerManagement->addEvent(...)` with the following arguments above.

### Closing an issue

[](#closing-an-issue)

```
    public function closeIssue(string $type): bool

```

Which comes from `Jh\Logger\Api\LoggerManagementInterface` which can be injected into via constructor method

```
    public function __construct(
        LoggerManagementInterface $loggerManagement,
    ) {
        $this->loggerManagement = $loggerManagement;
    }

```

and then can be used as follows `$this->loggerManagement->closeIssue("API error")`

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance94

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~504 days

Total

5

Last Release

60d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2a5332bef5dfe8c03f82f4a4c94586bf35b2ec82f5f1f050a39ec0aa694a8668?d=identicon)[jh](/maintainers/jh)

---

Top Contributors

[![bartoszkubicki](https://avatars.githubusercontent.com/u/20238194?v=4)](https://github.com/bartoszkubicki "bartoszkubicki (5 commits)")[![megham2908](https://avatars.githubusercontent.com/u/149599506?v=4)](https://github.com/megham2908 "megham2908 (4 commits)")[![pknap](https://avatars.githubusercontent.com/u/1770746?v=4)](https://github.com/pknap "pknap (2 commits)")[![szreka](https://avatars.githubusercontent.com/u/4797581?v=4)](https://github.com/szreka "szreka (1 commits)")

---

Tags

debuggingm2m2-moduleutils

### Embed Badge

![Health badge](/badges/wearejh-m2-module-logger/health.svg)

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

###  Alternatives

[symfony/stopwatch

Provides a way to profile code

2.8k387.2M914](/packages/symfony-stopwatch)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k28](/packages/fruitcake-laravel-debugbar)[spatie/ignition

A beautiful error page for PHP applications.

510147.6M69](/packages/spatie-ignition)[jokkedk/webgrind

Webgrind is a Xdebug profiling web frontend in PHP5. It implements a subset of the features of kcachegrind and installs in seconds and works on all platforms. For quick'n'dirty optimizations it does the job.

3.3k193.0k](/packages/jokkedk-webgrind)[koriym/printo

An object graph visualizer.

1421.8M2](/packages/koriym-printo)[soloterm/dumps

A Laravel command to intercept dumps from your Laravel application.

125285.7k3](/packages/soloterm-dumps)

PHPackages © 2026

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