yzen.dev/mono-processor
Composer 安装命令:
composer require yzen.dev/mono-processor
包简介
This Processor will display in the logs bread crumbs by which you can more quickly and accurately identify the cause of the error.
README 文档
README
This Processor will display in the logs bread crumbs by which you can more quickly and accurately identify the cause of the error.
📜 Installation
The package can be installed via composer:
composer require yzen.dev/mono-processor
To get started, first publish MonoProcessor config and view files into your own project:
php artisan vendor:publish --provider "MonoProcessor\ServiceProvider"
📜 Version Compatibility
| Laravel | MonoProcessor |
|---|---|
| v8.x | v1.x |
| v7.x | v0.3.x |
📜 Features
- Extends standard logs
- Collection of SQL requests
- Collection of HTTP requests
- Authorized user information
- Route information
- Git information
- PHP information
- Memory information
📜 Usage
To use MonoProcessor you need to add the following tap to your logging.php config:
'channels' => [ 'daily' => [ 'driver' => 'daily', 'path' => storage_path('logs/laravel.log'), 'level' => 'debug', 'days' => env('LOG_DAYS', 7), 'tap' => [ MonoProcessor\MonoProcessors::class ] ] ]
As a result, you will get approximately the following information after the stack:
📜 Configuration
| Processor | Description |
|---|---|
| stacktrace | Stack output when an error occurs |
| memoryPeak | Memory peak at runtime |
| git | Git branch and Git commit SHA |
| phpinfo | php info (version) |
| json_format | Output of additional information in the format JSON_PRETTY_PRINT |
| command | Listen console commands |
| levels | levels (DEBUG, INFO, NOTICE, WARNING, ERROR, CRITICAL, ALERT, EMERGENCY) |
| uuid | Adds a unique identifier |
| ----------------- | ------------------------------------------------------------ |
| request | Logging of the received request |
| request.base_info | add request host,ip,url,method |
| request.header | add request header |
| request.body | add request body |
| ----------------- | ------------------------------------------------------------ |
| breadcrumbs | What breadcrumbs do you need to collect |
| breadcrumbs.auth | auth info |
| breadcrumbs.sql | List of sql queries |
| breadcrumbs.route | route info (name,action) |
You can also get all harvested breadcrumbs using the get_breadcrumbs() method.
yzen.dev/mono-processor 适用场景与选型建议
yzen.dev/mono-processor 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 6.12k 次下载、GitHub Stars 达 11, 最近一次更新时间为 2020 年 05 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「log」 「monolog」 「logger」 「breadcrumbs」 「laravel」 「processor」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 yzen.dev/mono-processor 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 yzen.dev/mono-processor 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 yzen.dev/mono-processor 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A GeoIP decorator/processor for monolog
A Zend Framework module that sets up Monolog for logging in applications.
Laravel 5.6 Monolog custom telegram channel
Workflow logger
HTTP request logger middleware for Laravel
A Monolog processor to add X-Request-Id or UNIQUE_ID env to monolog stack if present, provide a default one otherwise. Optionally, add a forwarded request-id list.
统计信息
- 总下载量: 6.12k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 11
- 点击次数: 28
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-05-23