PHPackages                             azay/monolog-multiline-formatter - 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. azay/monolog-multiline-formatter

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

azay/monolog-multiline-formatter
================================

Multiline Formatter for Monolog

v1.0.4(2y ago)014MITPHPPHP &gt;=7.0

Since May 24Pushed 2y ago1 watchersCompare

[ Source](https://github.com/azay-ru/monolog-multiline-formatter)[ Packagist](https://packagist.org/packages/azay/monolog-multiline-formatter)[ RSS](/packages/azay-monolog-multiline-formatter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (7)Used By (0)

Multiline Formatter for Monolog (beta)
======================================

[](#multiline-formatter-for-monolog-beta)

Requirements
------------

[](#requirements)

- PHP 7.1 or greater
- Monolog 2.9 or greater
- Json extension

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

[](#installation)

Installation is possible using Composer.

```
composer require azay/monolog-multiline-formatter
```

Usage
-----

[](#usage)

```
use Monolog\Logger;
use Monolog\Handler\StreamHandler;
use Azay\Monolog\Formatter\MultiLineFormatter;

$logger = new Logger('Multiline');
$handler = new StreamHandler('php://stdout', Logger::DEBUG);
$handler->setFormatter(
    new MultiLineFormatter()
);
$logger->pushHandler($handler);
```

### Example

[](#example)

```
...
$logger->info( 'Some event', [ 'first' => 'This is first value' ] );
...
$logger->info( 'Another event', [ 'a' => 'AAAA', 'b' => 'BBBB', 'XYZ', 1000, true ] );
...
```

### Output

[](#output)

```
2023-05-24T17:12:16+03:00 [INFO] Some event
first: This is first value

2023-05-24T17:12:16+03:00 [INFO] Another event
a: AAAA
b: BBBB
XYZ
1000
1

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

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

Total

5

Last Release

1019d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/86a7f17728cd15d20108b585f1285a82d91f9980f3aa2c746595105b76a89d68?d=identicon)[azay-ru](/maintainers/azay-ru)

---

Tags

formattermonologformattermonolog

### Embed Badge

![Health badge](/badges/azay-monolog-multiline-formatter/health.svg)

```
[![Health](https://phpackages.com/badges/azay-monolog-multiline-formatter/health.svg)](https://phpackages.com/packages/azay-monolog-multiline-formatter)
```

###  Alternatives

[maxbanton/cwh

AWS CloudWatch Handler for Monolog library

42515.3M27](/packages/maxbanton-cwh)[phpnexus/cwh

AWS CloudWatch Handler for Monolog library

393.2M7](/packages/phpnexus-cwh)[bref/monolog-bridge

Monolog formatter optimized for AWS Lambda and CloudWatch

111.2M3](/packages/bref-monolog-bridge)

PHPackages © 2026

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