定制 skyzyx/monolog-json-pretty-print-formatter 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

skyzyx/monolog-json-pretty-print-formatter

最新稳定版本:1.0.0

Composer 安装命令:

composer require skyzyx/monolog-json-pretty-print-formatter

包简介

Pretty-prints JSON responses in the Monolog JsonFormatter!

README 文档

README

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

Requirements

Required

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

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

Bundle with Composer (recommended!)

To add JSON Pretty Print Formatter for Monolog as a Composer 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

To view the list of existing contributors, run the following command from the Terminal:

git shortlog -sne --no-merges

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 & Licensing

See also the list of contributors who participated in this project.

Licensed for use under the terms of the MIT license.

统计信息

  • 总下载量: 199.4k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-09-06