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

Since Feb 28Pushed 9mo 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 3w 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

36

—

LowBetter than 79% of packages

Maintenance57

Moderate activity, may be stable

Popularity9

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

281d 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

[sentry/sentry

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

1.9k240.0M314](/packages/sentry-sentry)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[illuminate/log

The Illuminate Log package.

6225.0M601](/packages/illuminate-log)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[api-platform/metadata

API Resource-oriented metadata attributes and factories

244.5M182](/packages/api-platform-metadata)[pagemachine/typo3-formlog

Form log for TYPO3

23233.9k7](/packages/pagemachine-typo3-formlog)

PHPackages © 2026

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