ju4n / telemetry-logger
A simple log system
0.1.1
2025-02-19 12:29 UTC
Requires
- php: >=8.2
- psr/log: ^3.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.64
- phpstan/phpstan: ^1.12
- phpunit/phpunit: ^11.4
- symfony/var-dumper: ^7.1
README
Telemetry Logger is an extensible PHP package that allows logging to multiple destinations (drivers) and formats. It follows the PSR-3 logging standard and is designed to be flexible and easily extensible with custom drivers and formatters.
Features
- Supports multiple drivers: CLI and file.
- Extensible for adding custom drivers and formatters.
- Easy to use with a configurable
LoggerBuilder. - Supports log transactions.
- PSR-3 compliant.
Requirements
Installation
You can install the package via Composer:
composer require ju4n/telemetry-logger
Documentation
Running Tests
This project includes a set of unit tests that you can run using PHPUnit.
First, ensure that you have installed the development dependencies:
composer install --dev
Then, you can run the tests with the following command:
vendor/bin/phpunit
You can also generate a code coverage report:
vendor/bin/phpunit --coverage-html coverage/
If you don't have PHP installed on your local machine, you can run the tests using docker-compose by executing:
docker-compose run composer install && docker-compose run phpunit
Diagram
License
This project is licensed under the MIT License.
