PHPackages                             inanepain/log - 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. inanepain/log

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

inanepain/log
=============

Write log messages... we all know this one already.

0.1.1(1mo ago)00UnlicensePHPPHP &gt;=8.5

Since Apr 14Pushed 3w agoCompare

[ Source](https://github.com/inanepain/log)[ Packagist](https://packagist.org/packages/inanepain/log)[ Docs](https://github.com/inanepain/log)[ RSS](/packages/inanepain-log/feed)WikiDiscussions develop Synced 1w ago

READMEChangelogDependencies (6)Versions (4)Used By (0)

inanepain/log [![icon](./icon.png "inanepain/log")](./icon.png)
===============================================================

[](#inanepainlog-)

Table of Contents

- [![icon](./icon.png "inanepain/log") inanepain/log](#inanepainlog)
- [1. Install](#install)
- [2. Usage](#usage)
    - [2.1. Basic Usage](#basic-usage)
    - [2.2. Multiple Writers and Filtering](#multiple-writers-and-filtering)
    - [2.3. Available Writers](#available-writers)
- [3. Website: github](#website-github)

[![icon](./icon.png "inanepain/log")](./icon.png) inanepain/log
---------------------------------------------------------------

[](#-inanepainlog)

Flexible PSR-3 logging implementation with support for multiple writers.

1. Install
----------

[](#1-install)

composer

```
composer require inanepain/log
```

2. Usage
--------

[](#2-usage)

The `log` package provides a PSR-3 compatible logger that can delegate to multiple writers.

### 2.1. Basic Usage

[](#21-basic-usage)

```
use Inane\Log\Logger;
use Inane\Log\Writer\StdoutWriter;

$logger = new Logger([
    new StdoutWriter()
]);

$logger->info("Hello, World!");
```

### 2.2. Multiple Writers and Filtering

[](#22-multiple-writers-and-filtering)

You can add multiple writers and set their log level limits.

```
use Inane\Log\Logger;
use Inane\Log\Writer\JsonFileWriter;
use Inane\Log\Writer\StderrorWriter;
use Psr\Log\LogLevel;

$logger = new Logger();

// All logs to a JSON file
$logger->addWriter(new JsonFileWriter(__DIR__ . '/logs', 'app'));

// Only errors and above to STDERR
$logger->addWriter((new StderrorWriter())->setMinLevel(LogLevel::ERROR));

$logger->error("Something went wrong!");
```

### 2.3. Available Writers

[](#23-available-writers)

- `StdoutWriter`: Writes JSON logs to `STDOUT`.
- `StderrorWriter`: Writes JSON logs to `STDERR`.
- `JsonFileWriter`: Writes JSON logs to rotating files.

3. Website: github
------------------

[](#3-website-github)

[ github](https://github.com/inanepain/log)

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance95

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

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

Total

2

Last Release

35d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1823594?v=4)[Philip Michael Raab](/maintainers/inanepain)[@inanepain](https://github.com/inanepain)

---

Top Contributors

[![inanepain](https://avatars.githubusercontent.com/u/1823594?v=4)](https://github.com/inanepain "inanepain (14 commits)")

---

Tags

logpsr-3librarywriterinaneinanepain

### Embed Badge

![Health badge](/badges/inanepain-log/health.svg)

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

###  Alternatives

[sentry/sentry

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

1.9k247.1M346](/packages/sentry-sentry)[pagemachine/typo3-formlog

Form log for TYPO3

23238.6k8](/packages/pagemachine-typo3-formlog)[markrogoyski/simplelog-php

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

2819.3k4](/packages/markrogoyski-simplelog-php)

PHPackages © 2026

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