PHPackages                             skyzyx/monolog-json-pretty-print-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. skyzyx/monolog-json-pretty-print-formatter

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

skyzyx/monolog-json-pretty-print-formatter
==========================================

Pretty-prints JSON responses in the Monolog JsonFormatter!

1.0.0(11y ago)3202.7k↓20.8%3[1 PRs](https://github.com/skyzyx/monolog-json-pretty-print-formatter/pulls)MITPHPPHP &gt;=5.4.0

Since Sep 8Pushed 10y ago2 watchersCompare

[ Source](https://github.com/skyzyx/monolog-json-pretty-print-formatter)[ Packagist](https://packagist.org/packages/skyzyx/monolog-json-pretty-print-formatter)[ RSS](/packages/skyzyx-monolog-json-pretty-print-formatter/feed)WikiDiscussions master Synced 1mo ago

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

[JSON Pretty Print Formatter for Monolog](http://github.com/skyzyx/monolog-json-pretty-print-formatter)
=======================================================================================================

[](#json-pretty-print-formatter-for-monolog)

A variation of the [Monolog](https://github.com/Seldaek/monolog) `JsonFormatter` class which pretty-prints the JSON output. The API for this class is 100% backwards-compatible with `JsonFormatter`.

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

[](#requirements)

### Required

[](#required)

The following software is **required** for JSON Pretty Print Formatter for Monolog to run:

- [PHP](http://php.net) 5.4.0+

Examples
--------

[](#examples)

```
use Monolog\Handler\StreamHandler;
use Monolog\Logger;
use Skyzyx\Monolog\Formatter\JsonPrettyPrintFormatter;

$logger = new Logger('AwesomeSauce');
$handler = new StreamHandler('/var/log/awesomesauce.log', Logger::DEBUG);
$handler->setFormatter(new JsonPrettyPrintFormatter());
$logger->pushHandler($handler);
```

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

[](#installation)

### Bundle with Composer (recommended!)

[](#bundle-with-composer-recommended)

To add JSON Pretty Print Formatter for Monolog as a [Composer](https://getcomposer.org) dependency in your `composer.json` file:

```
{
    "require": {
        "skyzyx/monolog-json-pretty-print-formatter": ">=1.0"
    }
}
```

And include it in your scripts:

```
require_once 'vendor/autoload.php';
```

Contributing
------------

[](#contributing)

To view the list of existing [contributors](/skyzyx/monolog-json-pretty-print-formatter/graphs/contributors), run the following command from the Terminal:

```
git shortlog -sne --no-merges
```

### How?

[](#how)

Here's the process for contributing:

1. Fork JSON Pretty Print Formatter for Monolog to your GitHub account.
2. Clone your GitHub copy of the repository into your local workspace.
3. Write code, fix bugs, and add tests with 100% code coverage.
4. Commit your changes to your local workspace and push them up to your GitHub copy.
5. You submit a GitHub pull request with a description of what the change is.
6. The contribution is reviewed. Maybe there will be some banter back-and-forth in the comments.
7. If all goes well, your pull request will be accepted and your changes are merged in.

Authors, Copyright &amp; Licensing
----------------------------------

[](#authors-copyright--licensing)

- Copyright (c) 2014 [Ryan Parman](http://ryanparman.com).

See also the list of [contributors](/skyzyx/monolog-json-pretty-print-formatter/contributors) who participated in this project.

Licensed for use under the terms of the [MIT](http://www.opensource.org/licenses/mit-license.php) license.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

4270d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/39447?v=4)[Ryan Parman](/maintainers/skyzyx)[@skyzyx](https://github.com/skyzyx)

---

Top Contributors

[![skyzyx](https://avatars.githubusercontent.com/u/39447?v=4)](https://github.com/skyzyx "skyzyx (9 commits)")

---

Tags

logjsonprettymonolog

### Embed Badge

![Health badge](/badges/skyzyx-monolog-json-pretty-print-formatter/health.svg)

```
[![Health](https://phpackages.com/badges/skyzyx-monolog-json-pretty-print-formatter/health.svg)](https://phpackages.com/packages/skyzyx-monolog-json-pretty-print-formatter)
```

###  Alternatives

[inpsyde/logzio-monolog

Logz.io integration for Monolog

191.2M1](/packages/inpsyde-logzio-monolog)

PHPackages © 2026

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