PHPackages                             innmind/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. innmind/logger

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

innmind/logger
==============

Logger

2.1.0(5y ago)0457[2 issues](https://github.com/Innmind/Logger/issues)2MITPHPPHP ~7.4|~8.0CI failing

Since Sep 22Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Innmind/Logger)[ Packagist](https://packagist.org/packages/innmind/logger)[ Docs](http://github.com/Innmind/Logger)[ RSS](/packages/innmind-logger/feed)WikiDiscussions develop Synced 4d ago

READMEChangelogDependencies (9)Versions (7)Used By (2)

Logger
======

[](#logger)

[![codecov](https://camo.githubusercontent.com/37476a1ff766747a9454b268ecab1e68c9202623246c773c03c5c31bf7fc3885/68747470733a2f2f636f6465636f762e696f2f67682f496e6e6d696e642f4c6f676765722f6272616e63682f646576656c6f702f67726170682f62616467652e737667)](https://codecov.io/gh/Innmind/Logger)[![Build Status](https://github.com/Innmind/Logger/workflows/CI/badge.svg?branch=master)](https://github.com/Innmind/Logger/actions?query=workflow%3ACI)[![Type Coverage](https://camo.githubusercontent.com/08f4563a1315df25cf29f3221eb4a6f425ac09c5d6ef8264f1aa58112a3ed965/68747470733a2f2f73686570686572642e6465762f6769746875622f496e6e6d696e642f4c6f676765722f636f7665726167652e737667)](https://shepherd.dev/github/Innmind/Logger)

Simple abstraction of monolog to simplify (hopefully) the creation of a logger.

Installation
------------

[](#installation)

```
composer require innmind/logger
```

Usage
-----

[](#usage)

```
use function Innmind\Logger\bootstrap;
use Innmind\Url\Url;

$logger = bootstrap(
    'myApp',
    Url::of('file://'.__DIR__.'/var/log.txt'),
    Url::of('sentry://user@sentry.io/project-id'),
);

$concrete = $logger();
$fingersCrossed = $logger('error');
```

In this example both `$concrete` and `$fingersCrossed` are instances of `Psr\Log\LoggerInterface` with the first one that will write each log to the specified file and to sentry, the latter will only write logs when the `error` level is reached.

If you want to specify the log level for each handler you can do it by adding the `level` query parameter in the handler url.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity71

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

Total

5

Last Release

1910d ago

Major Versions

1.1.0 → 2.0.02020-02-03

PHP version history (3 changes)1.0.0PHP ~7.2

2.0.0PHP ~7.4

2.1.0PHP ~7.4|~8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/851425?v=4)[Baptiste Langlade](/maintainers/Baptouuuu)[@Baptouuuu](https://github.com/Baptouuuu)

---

Top Contributors

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

---

Tags

psr-3logger

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[analog/analog

Fast, flexible, easy PSR-3-compatible PHP logging package with dozens of handlers.

3451.5M24](/packages/analog-analog)[inpsyde/wonolog

Monolog-based logging package for WordPress.

183617.9k7](/packages/inpsyde-wonolog)[apix/log

Minimalist, thin and fast PSR-3 compliant (multi-bucket) logger.

511.0M18](/packages/apix-log)[bref/logger

All you need to log with Bref on AWS Lambda

331.5M8](/packages/bref-logger)[markrogoyski/simplelog-php

Powerful PSR-3 logging. So easy, it's simple.

2818.1k4](/packages/markrogoyski-simplelog-php)[wa72/simplelogger

Wa72SimpleLogger is a collection of very simple loggers implementing \\Psr\\Log\\LoggerInterface (PSR-3)

13246.6k13](/packages/wa72-simplelogger)

PHPackages © 2026

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