2017 © Pedro Peláez
 

library monolog-json-pretty-print-formatter

Pretty-prints JSON responses in the Monolog JsonFormatter!

image

skyzyx/monolog-json-pretty-print-formatter

Pretty-prints JSON responses in the Monolog JsonFormatter!

  • Monday, September 8, 2014
  • by skyzyx
  • Repository
  • 2 Watchers
  • 2 Stars
  • 28,726 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 2 Versions
  • 17 % Grown

The README.md

JSON Pretty Print Formatter for Monolog

A variation of the Monolog JsonFormatter class which pretty-prints the JSON output. The API for this class is 100% backwards-compatible with JsonFormatter., (*1)

Requirements

Required

The following software is required for JSON Pretty Print Formatter for Monolog to run:, (*2)

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

To add JSON Pretty Print Formatter for Monolog as a Composer dependency in your composer.json file:, (*3)

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

And include it in your scripts:, (*4)

require_once 'vendor/autoload.php';

Contributing

To view the list of existing contributors, run the following command from the Terminal:, (*5)

git shortlog -sne --no-merges

How?

Here's the process for contributing:, (*6)

  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.

See also the list of contributors who participated in this project., (*7)

Licensed for use under the terms of the MIT license., (*8)

The Versions

08/09 2014

dev-master

9999999-dev

Pretty-prints JSON responses in the Monolog JsonFormatter!

  Sources   Download

MIT

The Requires

 

log json monolog pretty

08/09 2014

1.0.0

1.0.0.0

Pretty-prints JSON responses in the Monolog JsonFormatter!

  Sources   Download

MIT

The Requires

 

log json monolog pretty