ju4n/telemetry-logger

A simple log system

Maintainers

Package info

github.com/Ju4n/telemetry-package

pkg:composer/ju4n/telemetry-logger

Statistics

Installs: 18

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

0.1.1 2025-02-19 12:29 UTC

This package is auto-updated.

Last update: 2026-04-19 15:07:07 UTC


README

Tests

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

  • PHP 8.2 or higher.
  • Composer for dependency management.
  • PHPUnit for running tests.

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

UML

License

This project is licensed under the MIT License.