Oihana PHP

Oihana PHP Logging

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

πŸ“š Documentation

Narrative user guides (FR + EN), with examples:

You are currently browsing the auto-generated API reference (phpDocumentor).

πŸš€ Features

  • πŸͺ΅ A PSR-3 compliant, daily-file Logger with message interpolation.
  • 🧩 A CompositeLogger broadcasting to many PSR-3 loggers (WeakMap-based).
  • πŸ”„ A Monolog-based rotating-file manager (MonoLogManager) and a LoggerManager base class.
  • 🧰 Composable logger traits β€” LoggerTrait, LoggerManagerTrait, DebugTrait.
  • ✨ Custom Monolog processors β€” emoji and symbol level decorators.
  • πŸ§ͺ 100% unit-test line coverage, ensuring reliability and maintainability.

πŸ“¦ Installation

This library requires PHP 8.4+ and is installed via Composer:

composer require oihana/php-logging

βœ… Tests & coverage

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

composer test

Measure coverage (requires Xdebug or PCOV):

composer coverage
composer coverage:md

🧾 License

This project is licensed under the Mozilla Public License 2.0 (MPL-2.0).

πŸ‘€ About the Author

πŸ”— Related packages

πŸ”— Project on GitHub

View the full source code and contribute on GitHub: github.com/BcommeBois/oihana-php-logging.

Search results