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(6mo ago)064MITPHPPHP ^7.4|^8.0

Since Feb 28Pushed 6mo 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 today

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

38

—

LowBetter than 86% of packages

Maintenance68

Regular maintenance activity

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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

187d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/caa865d4467587eecd242fadf805f15ce436c9d7efa7786b49b69a193c158aaf?d=identicon)[johanrosenson](/maintainers/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

[bref/logger

All you need to log with Bref on AWS Lambda

341.4M5](/packages/bref-logger)[illuminated/console-logger

Logging and Notifications for Laravel Console Commands.

8674.5k](/packages/illuminated-console-logger)

PHPackages © 2026

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