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

00PHPCI passing

Since Jun 18Pushed yesterdayCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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

20

—

LowBetter than 13% of packages

Maintenance65

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 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.

### 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 (6 commits)")

### 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

[psr/log

Common interface for logging libraries

10.4k1.2B10.8k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1938.5M260](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2326.5M315](/packages/open-telemetry-sdk)[illuminated/console-logger

Logging and Notifications for Laravel Console Commands.

8676.7k](/packages/illuminated-console-logger)[relaxart/monolog-docker-handler

Docker handler for monolog

1442.6k](/packages/relaxart-monolog-docker-handler)

PHPackages © 2026

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