A lightweight, PSR-3 logging toolkit for PHP 8.4+.
π Documentation
Narrative user guides (FR + EN), with examples:
- π¬π§ English documentation
- π«π· Documentation franΓ§aise
You are currently browsing the auto-generated API reference (phpDocumentor).
π Features
- πͺ΅ A PSR-3 compliant, daily-file
Loggerwith message interpolation. - π§© A
CompositeLoggerbroadcasting to many PSR-3 loggers (WeakMap-based). - π A Monolog-based rotating-file manager (
MonoLogManager) and aLoggerManagerbase 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
- Name: Marc ALCARAZ (aka eKameleon)
- Website: www.ooop.fr
- Email: marc@ooop.fr
π Related packages
- oihana/php-core β core helpers and utilities.
- oihana/php-files β file and path handling utilities.
- oihana/php-enums β strongly-typed constant enumerations.
π Project on GitHub
View the full source code and contribute on GitHub: github.com/BcommeBois/oihana-php-logging.