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

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

devlop/prefixed-logger
======================

PSR-3 wrapper to prefix all messages going into a logger

1.0.2(10mo ago)065MITPHPPHP ^7.4|^8.0

Since Feb 28Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/devlop/prefixed-logger)[ Packagist](https://packagist.org/packages/devlop/prefixed-logger)[ RSS](/packages/devlop-prefixed-logger/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

 [![Latest Stable Version](https://camo.githubusercontent.com/8599ccd0481e65597f5c93016ee5043bc2b23f8365059c2499b44f7d101f7a05/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6465766c6f702f70726566697865642d6c6f67676572)](https://packagist.org/packages/devlop/prefixed-logger) [![License](https://camo.githubusercontent.com/0c078e0bc99e34bd067675f50aa4c3b5b66a584ee1e52a6a80d461ed3fefe050/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6465766c6f702f70726566697865642d6c6f67676572)](https://github.com/devlop/prefixed-logger/blob/master/LICENSE.md)

Prefixed Logger
===============

[](#prefixed-logger)

Wrapper to apply a prefix to all messages going into a logger.

Installation
============

[](#installation)

```
composer require devlop/prefixed-logger
```

Usage
=====

[](#usage)

```
use Devlop\PrefixedLogger\PrefixedLogger;

$logger = new PrefixedLogger('[your prefix] ', $theOriginalLogger);

// then use it as you would use any other logger

$logger->info('something happened'); // '[your prefix] something happened';

```

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance53

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~830 days

Total

3

Last Release

326d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10432296?v=4)[Johan Rosenson](/maintainers/johanrosenson)[@johanrosenson](https://github.com/johanrosenson)

---

Top Contributors

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

---

Tags

loggingpsr-3

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[symfony/cache

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

4.2k382.4M3.6k](/packages/symfony-cache)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k39.6k](/packages/matomo-matomo)[illuminate/log

The Illuminate Log package.

6225.7M674](/packages/illuminate-log)[tempest/framework

The PHP framework that gets out of your way.

2.3k37.6k19](/packages/tempest-framework)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

568591.1k61](/packages/ecotone-ecotone)[api-platform/metadata

API Resource-oriented metadata attributes and factories

275.5M252](/packages/api-platform-metadata)

PHPackages © 2026

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