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

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

duon/log
========

A simple PSR-3 Logger

0.1.0(3mo ago)0512MITPHPPHP ^8.5CI passing

Since Jan 31Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/duonrun/log)[ Packagist](https://packagist.org/packages/duon/log)[ Docs](https://duon.run/log)[ RSS](/packages/duon-log/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (2)

Duon Log
========

[](#duon-log)

[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE.md)[![Codacy Badge](https://camo.githubusercontent.com/22c8d872d6b40600c0386eaa5baf68d23eb74cc866cca989eda38b78e7fb2f1d/68747470733a2f2f6170702e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3663356636373566386439313461383839393366333339613635336164366161)](https://app.codacy.com/gh/duonrun/log/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)[![Codacy Badge](https://camo.githubusercontent.com/70b5dbb6a4251d7cb79f18c52f4a5dc38ea20ff4ac74248c7fdc498802b18f31/68747470733a2f2f6170702e636f646163792e636f6d2f70726f6a6563742f62616467652f436f7665726167652f3663356636373566386439313461383839393366333339613635336164366161)](https://app.codacy.com/gh/duonrun/log/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage)[![Psalm level](https://camo.githubusercontent.com/664f48c5109b87f24f2b2c8fca9e54a7c125a31b07a746139438d4dcd0f9b270/68747470733a2f2f73686570686572642e6465762f6769746875622f64756f6e72756e2f6c6f672f6c6576656c2e7376673f)](https://duonrun.dev/log)[![Psalm coverage](https://camo.githubusercontent.com/7ecf699c9f535a0ec1a761187eb362a37526019375d6419153a33f38bfa63726/68747470733a2f2f73686570686572642e6465762f6769746875622f64756f6e72756e2f6c6f672f636f7665726167652e7376673f)](https://shepherd.dev/github/duonrun/log)

A simple PSR-3 logger using PHP's `error_log` function.

Testing
-------

[](#testing)

During testing, PHP's `error_log` ini setting is set to a temporary file. To print the output to the console, prepend a special env variable to the PHPUnit cli command, as follows:

```
ECHO_LOG=1 phpunit
```

### Test Environment Requirements

[](#test-environment-requirements)

Tests require:

- `ini_set()` function enabled (for `error_log` redirection)
- Writable system temp directory (for test log file isolation)
- PHP `error_reporting` must be modifiable

These are standard in development environments but may fail in restricted PHP configurations where `ini_set` is disabled via `disable_functions`.

License
-------

[](#license)

This project is licensed under the [MIT license](LICENSE.md).

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance80

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

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

Unknown

Total

1

Last Release

107d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0c15f1690b643e5cbf205fd28f3b2ebb6c7448d34774bb92b7952150c901a689?d=identicon)[ernstla](/maintainers/ernstla)

---

Top Contributors

[![ernstla](https://avatars.githubusercontent.com/u/683620?v=4)](https://github.com/ernstla "ernstla (75 commits)")

---

Tags

logpsr-3loggingduon

### Embed Badge

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

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

###  Alternatives

[monolog/monolog

Sends your logs to files, sockets, inboxes, databases and various web services

21.4k964.9M7.0k](/packages/monolog-monolog)[analog/analog

Fast, flexible, easy PSR-3-compatible PHP logging package with dozens of handlers.

3451.5M24](/packages/analog-analog)[inpsyde/wonolog

Monolog-based logging package for WordPress.

183617.9k7](/packages/inpsyde-wonolog)[apix/log

Minimalist, thin and fast PSR-3 compliant (multi-bucket) logger.

511.0M18](/packages/apix-log)[elastic/ecs-logging

Format and enrich your log files in the elastic common schema

21907.5k1](/packages/elastic-ecs-logging)[markrogoyski/simplelog-php

Powerful PSR-3 logging. So easy, it's simple.

2818.1k4](/packages/markrogoyski-simplelog-php)

PHPackages © 2026

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