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 3w 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 69% 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

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

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[laravel/framework

The Laravel Framework.

34.8k543.8M19.8k](/packages/laravel-framework)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k13](/packages/tempest-framework)[illuminate/log

The Illuminate Log package.

6225.3M617](/packages/illuminate-log)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M560](/packages/shopware-core)

PHPackages © 2026

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