PHPackages                             giurgiur/logger - 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. giurgiur/logger

ActiveLibrary

giurgiur/logger
===============

A small Logger library

00PHP

Since May 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/rubingiurgiu/logger)[ Packagist](https://packagist.org/packages/giurgiur/logger)[ RSS](/packages/giurgiur-logger/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Logger
======

[](#logger)

Logger is a small PHP library that provides functionality to log messages to various targets.

Installation You can install the Logger library using Composer. Run the following command:

```
    composer require giurgiur/logger

```

E.g. of usage:

```
    $apiTarget = new ApiLogTarget('http://test.com/api/logs',);
    $emailTarget = new EmailLogTarget('admin@example.com', 'admin@example.com');
    $consoleTarget = new ConsoleLogTarget();

    $logger = new Logger([$apiTarget, $emailTarget, $consoleTarget], LogLevel::DEBUG);

    // Configure levels per target
    $apiTarget->setLevel(LogLevel::ERROR);
    $emailTarget->setLevel(LogLevel::WARNING);

    $logger->debug('Log debug -> visible by console targe');
    $logger->info('Log info -> visible by console target');
    $logger->warning('Log warning -> visible by email, console targets');
    $logger->error('Log error -> visible by everyrone');

    // Reset levels to DEBUG
    $apiTarget->setLevel(LogLevel::DEBUG);
    $emailTarget->setLevel(LogLevel::DEBUG);

    $logger->debug('Log debug -> visible by evreyone');

```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 50% 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/a0d85b5fd0d5c93195498451b3e5f03c23184648e733e16f79881a1af46dfca2?d=identicon)[rubingiurgiu](/maintainers/rubingiurgiu)

---

Top Contributors

[![GiurgiuRubin](https://avatars.githubusercontent.com/u/190528331?v=4)](https://github.com/GiurgiuRubin "GiurgiuRubin (2 commits)")[![rubingiurgiu](https://avatars.githubusercontent.com/u/43540577?v=4)](https://github.com/rubingiurgiu "rubingiurgiu (2 commits)")

### Embed Badge

![Health badge](/badges/giurgiur-logger/health.svg)

```
[![Health](https://phpackages.com/badges/giurgiur-logger/health.svg)](https://phpackages.com/packages/giurgiur-logger)
```

PHPackages © 2026

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