PHPackages                             logger/essentials - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. logger/essentials

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

logger/essentials
=================

Advanced logging component library

1.0.1.1(7mo ago)658.1k↑46.4%13MITPHPPHP &gt;= 8.0

Since Nov 9Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/LoggerEssentials/LoggerEssentials)[ Packagist](https://packagist.org/packages/logger/essentials)[ RSS](/packages/logger-essentials/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (4)Versions (39)Used By (3)

logger/essentials
=================

[](#loggeressentials)

[![Latest Stable Version](https://camo.githubusercontent.com/b2a24f9f38c89ce21f5b68096af003d31ca838bf169740e37079781e12c82467/68747470733a2f2f706f7365722e707567782e6f72672f6c6f676765722f657373656e7469616c732f76657273696f6e2e737667)](https://packagist.org/packages/logger/essentials)[![License](https://camo.githubusercontent.com/9fd898353cc13406b2a6f48a73044e0a51705781071bc4d19f8a7f030ac4e058/68747470733a2f2f706f7365722e707567782e6f72672f6c6f676765722f657373656e7469616c732f6c6963656e73652e737667)](https://packagist.org/packages/logger/essentials)

A lightweight, composable logging toolkit for PHP that implements the PSR‑3 LoggerInterface and lets you build flexible pipelines. Combine output loggers (e.g., streams, syslog) with formatters, filters, and extenders to shape messages, enrich context, and route by severity. Includes an ExtendedLogger for hierarchical captions and execution scopes.

Quick taste

```
use Logger\Builder;
use Logger\Formatters\TemplateFormatter;
use Logger\Loggers\ResourceLogger;
use Psr\Log\LoggerInterface;

$logger = Builder::chain(
    ResourceLogger::outputToStdOut(),
    fn (LoggerInterface $l) => new TemplateFormatter($l)
);

$logger->info('Hello world', ['id' => 42]);
```

Component overview

- [Common](docs/components/common.md) — ExtendedLogger for hierarchical captions and contextual scopes.
- [Formatters](docs/components/formatters.md) — Render and transform messages (Template, DateTime, Prefix, JSON, etc.).
- [Filters](docs/components/filters.md) — Pass/drop by rules (min/max/range level, callbacks, regex).
- [Loggers](docs/components/loggers.md) — Output sinks: streams, syslog, callbacks, in‑memory array.
- [Extenders](docs/components/extenders.md) — Side‑effect hooks and enrichment (context, stacktrace, metrics).
- [Manipulators](docs/components/manipulators.md) — Adjust semantics like compressing log levels.

How it differs from other logging solutions:

- [Monolog](docs/other-loggers/monolog.md)
- [KLogger](docs/other-loggers/klogger.md)
- [Log4PHP](docs/other-loggers/log4php.md)

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance63

Regular maintenance activity

Popularity33

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~109 days

Recently: every ~60 days

Total

38

Last Release

222d ago

Major Versions

0.2.3 → 1.0.02025-11-22

PHP version history (3 changes)0.0.1PHP &gt;= 5.3

0.2PHP &gt;= 7.1

1.0.0PHP &gt;= 8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22354384?v=4)[logger](/maintainers/logger)[@logger](https://github.com/logger)

---

Top Contributors

[![rkrx](https://avatars.githubusercontent.com/u/5672982?v=4)](https://github.com/rkrx "rkrx (145 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[sentry/sentry

PHP SDK for Sentry (http://sentry.io)

1.9k247.1M335](/packages/sentry-sentry)[symfony/cache

Provides extended PSR-6, PSR-16 (and tags) implementations

4.2k373.5M3.3k](/packages/symfony-cache)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[illuminate/log

The Illuminate Log package.

6225.3M623](/packages/illuminate-log)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[api-platform/metadata

API Resource-oriented metadata attributes and factories

275.0M219](/packages/api-platform-metadata)

PHPackages © 2026

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