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

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

37

—

LowBetter than 83% of packages

Maintenance62

Regular maintenance activity

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

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

[sentry/sentry

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

1.9k227.1M271](/packages/sentry-sentry)[rollbar/rollbar

Monitors errors and exceptions and reports them to Rollbar

33723.7M81](/packages/rollbar-rollbar)[illuminate/log

The Illuminate Log package.

6224.3M517](/packages/illuminate-log)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2222.9M248](/packages/open-telemetry-sdk)[open-telemetry/api

API for OpenTelemetry PHP.

1833.0M214](/packages/open-telemetry-api)[pagemachine/typo3-formlog

Form log for TYPO3

23225.3k6](/packages/pagemachine-typo3-formlog)

PHPackages © 2026

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