定制 proemergotech/prmrgt-monolog-formatter 二次开发

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

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

proemergotech/prmrgt-monolog-formatter

Composer 安装命令:

composer require proemergotech/prmrgt-monolog-formatter

包简介

Custom Monolog formatter for extracting custom key-values from log context. Uses RFC3339/ISO8601 datetime with microseconds by default.

README 文档

README

A custom Monolog formatter for extracting custom key-values from log context. Uses RFC3339/ISO8601 datetime with microseconds by default.

Installation

  • Install via Composer
composer require proemergotech/prmrgt-monolog-formatter

Usage

This formatter can be added to a Monolog handler as any other formatter. Each logging handler uses a Formatter to format the record before logging it.

$handler = new Monolog\Handler\StreamHandler(env('LOG_STREAM', '/tmp/stdout.sock'), \Monolog\Logger::DEBUG);
$handler->setFormatter(new PrmrgtLogFormatter(['keyToExtract', 'otherKeyToExract], 'Y-m-d H:i:s'));
$monolog->pushHandler($handler);

You can find more information on handlers, formatters and processors in the official Monolog documentation.

Contributing

See CONTRIBUTING.md file.

Credits

This package is developed by Miklós Boros at Pro Emergotech Ltd..

License

This project is released under the MIT License.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 6
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-10-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固