PHPackages                             axleus/axleus-log - 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. axleus/axleus-log

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

axleus/axleus-log
=================

Axleus Logging component

0.0.x-dev(1y ago)22[2 issues](https://github.com/axleus/axleus-log/issues)[2 PRs](https://github.com/axleus/axleus-log/pulls)BSD-3-ClausePHPPHP ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0CI failing

Since Apr 1Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/axleus/axleus-log)[ Packagist](https://packagist.org/packages/axleus/axleus-log)[ Docs](https://github.com/orgs/axleus/discussions)[ GitHub Sponsors](https://github.com/AXLEUS)[ RSS](/packages/axleus-axleus-log/feed)WikiDiscussions 0.0.x Synced 1mo ago

READMEChangelogDependencies (11)Versions (7)Used By (0)

axleus/axleus-log
=================

[](#axleusaxleus-log)

This package provides logging via Monolog for all laminas-mvc and mezzio applications. It provides a log handler backed by laminas-db for writing logs to a database table. It also provides event listeners for error logging in both frameworks.

Mezzio Integration
------------------

[](#mezzio-integration)

Just pipe the middleware into your application as early as required to provide logging for all future middleware/handlers. If you are using the default Mezzio pipeline, this should be done in the `config/pipeline.php` file. If you are delegating your pipeline to configuration you can uncomment the following in the ConfigProvider class.

```
'middleware_pipeline' => $this->getPipelineConfig(),
```

To enable error logging in Mezzio or MVC simply provide the following top level config key from any ConfigProvider or config file.

```
return [
    \Axleus\Log\ConfigProvider::class => [
        'log_errors' => true,
    ],
];
```

Default Channels
----------------

[](#default-channels)

By default, the following channels are provided for logging:

- app
- error
- user

To provide some safety around channels the module provides Axleus\\Log\\LogChannel which is a BackedEnum.

Finally, you can import the file ./test/integration/TestFixtures/mysql.sql into your database to create the required table for logging. If you are not using mysql, then you can use it as a guide to create the table in your database of choice as long as its supported by laminas-db.

Everything else *should* just work out of the box.

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance52

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

403d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4d6eed33e61a99f1147789696252f4523130b5035a19eb07e034a7407fd44548?d=identicon)[tyrsson](/maintainers/tyrsson)

---

Top Contributors

[![tyrsson](https://avatars.githubusercontent.com/u/1237487?v=4)](https://github.com/tyrsson "tyrsson (53 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (5 commits)")

---

Tags

psr-3laminasmezziomonologlaminas dbaxleus

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/axleus-axleus-log/health.svg)

```
[![Health](https://phpackages.com/badges/axleus-axleus-log/health.svg)](https://phpackages.com/packages/axleus-axleus-log)
```

###  Alternatives

[inpsyde/wonolog

Monolog-based logging package for WordPress.

183617.9k6](/packages/inpsyde-wonolog)[bitrix-expert/monolog-adapter

Monolog adapter for Bitrix CMS

6566.3k](/packages/bitrix-expert-monolog-adapter)[enlitepro/enlite-monolog

Monolog integration to Laminas

18641.6k](/packages/enlitepro-enlite-monolog)[staabm/phpstan-psr3

23427.3k2](/packages/staabm-phpstan-psr3)[facile-it/sentry-module

This module allows integration of Sentry Client into laminas and mezzio

19372.5k](/packages/facile-it-sentry-module)[filips123/monolog-phpmailer

PHPMailer handler for Monolog

1365.6k3](/packages/filips123-monolog-phpmailer)

PHPackages © 2026

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