PHPackages                             oihana/php-logging - 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. oihana/php-logging

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

oihana/php-logging
==================

The Oihana PHP Logging library

1.0.1(1mo ago)04107MPL-2.0PHPPHP &gt;=8.4CI passing

Since Jun 18Pushed 1mo agoCompare

[ Source](https://github.com/BcommeBois/oihana-php-logging)[ Packagist](https://packagist.org/packages/oihana/php-logging)[ Docs](https://github.com/BcommeBois/oihana-php-logging)[ RSS](/packages/oihana-php-logging/feed)WikiDiscussions main Synced 2w ago

READMEChangelogDependencies (14)Versions (3)Used By (7)

Oihana PHP - Logging
====================

[](#oihana-php---logging)

[![Oihana PHP Logging](https://raw.githubusercontent.com/BcommeBois/oihana-php-logging/main/assets/images/oihana-php-logging-logo-inline-512x160.png)](https://raw.githubusercontent.com/BcommeBois/oihana-php-logging/main/assets/images/oihana-php-logging-logo-inline-512x160.png)

A lightweight, PSR-3 logging toolkit for PHP 8.4+.

[![Latest Version](https://camo.githubusercontent.com/a89c8e88cfdedb6fbe5f4a5861fab206c1386475e255abda08735cf3b7febf93/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f6968616e612f7068702d6c6f6767696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/oihana/php-logging)
[![Total Downloads](https://camo.githubusercontent.com/ce03cc5280059558212f854a92af7ca456c6c204dec8a6abe816be713a3514fb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f6968616e612f7068702d6c6f6767696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/oihana/php-logging)
[![License](https://camo.githubusercontent.com/2ed2fc5ddf9d52aafaba9729df2731bcb7f739fb8053960045404311b8b39d34/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6f6968616e612f7068702d6c6f6767696e672e7376673f7374796c653d666c61742d737175617265)](LICENSE)

📚 Documentation
---------------

[](#-documentation)

User guides (FR + EN), with narrative explanations and examples:

🇬🇧 **[English documentation](wiki/en/README.md)**🇫🇷 **[Documentation française](wiki/fr/README.md)**Getting started, loggers, managers, traits, processors, enums, tips.Démarrage, loggers, managers, traits, processeurs, énumérations, astuces.Auto-generated API reference (phpDocumentor):
👉

🚀 Features
----------

[](#-features)

- 🪵 A PSR-3 compliant, daily-file `Logger` with message interpolation and global error/exception hooks.
- 🧩 A `CompositeLogger` that broadcasts log calls to many PSR-3 loggers (WeakMap-based auto-cleanup).
- 🔄 A Monolog-based rotating-file manager (`MonoLogManager`) and a reusable `LoggerManager` base class.
- 🧰 Composable logger traits — `LoggerTrait`, `LoggerManagerTrait`, `DebugTrait`.
- ✨ Custom Monolog processors — emoji and symbol level decorators.
- 🧪 Full unit-test coverage ensuring reliability and maintainability.

💡 Designed to be lightweight, testable, and compatible with any PHP 8.4+ project.

📦 Installation
--------------

[](#-installation)

> **Requires [PHP 8.4+](https://php.net/releases/)**

Install via [Composer](https://getcomposer.org):

```
composer require oihana/php-logging
```

✅ Tests &amp; coverage
----------------------

[](#-tests--coverage)

Run the full unit-test suite (PHPUnit, strict mode):

```
composer test
```

Run a single test case:

```
./vendor/bin/phpunit --filter CompositeLoggerTest
```

Measure coverage (requires Xdebug or PCOV):

```
composer coverage        # text + Clover + HTML under build/coverage/
composer coverage:md     # readable Markdown summary (build/coverage/COVERAGE.md)
```

The suite runs in **strict mode** and targets **100% line coverage**.

🧾 License
---------

[](#-license)

This project is licensed under the [Mozilla Public License 2.0 (MPL-2.0)](https://www.mozilla.org/en-US/MPL/2.0/).

👤 About the author
------------------

[](#-about-the-author)

- Author : Marc ALCARAZ (aka eKameleon)
- Mail :
- Website :

🛠️ Generate the Documentation
-----------------------------

[](#️-generate-the-documentation)

We use [phpDocumentor](https://phpdoc.org/) to generate the documentation into the ./docs folder.

### Usage

[](#usage)

Run the command :

```
composer doc
```

🔗 Related packages
------------------

[](#-related-packages)

- `oihana/php-core` – core helpers and utilities used by this library: `https://github.com/BcommeBois/oihana-php-core`
- `oihana/php-files` – file and path handling utilities: `https://github.com/BcommeBois/oihana-php-files`
- `oihana/php-enums` – a collection of strongly-typed constant enumerations for PHP: `https://github.com/BcommeBois/oihana-php-enums`

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance91

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity52

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

Every ~1 days

Total

2

Last Release

44d ago

### Community

Maintainers

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

---

Top Contributors

[![ekameleon](https://avatars.githubusercontent.com/u/749032?v=4)](https://github.com/ekameleon "ekameleon (8 commits)")

---

Tags

psr-3phploggingloggermonologpsr-log

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/oihana-php-logging/health.svg)

```
[![Health](https://phpackages.com/badges/oihana-php-logging/health.svg)](https://phpackages.com/packages/oihana-php-logging)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k39.6k](/packages/matomo-matomo)[laravel/framework

The Laravel Framework.

34.8k556.2M21.0k](/packages/laravel-framework)[tempest/framework

The PHP framework that gets out of your way.

2.3k37.6k19](/packages/tempest-framework)[illuminate/log

The Illuminate Log package.

6225.7M672](/packages/illuminate-log)[contao/core-bundle

Contao Open Source CMS

1301.7M2.9k](/packages/contao-core-bundle)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

569591.1k60](/packages/ecotone-ecotone)

PHPackages © 2026

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