johnnynotsolucky/outpost
Composer 安装命令:
composer require johnnynotsolucky/outpost
包简介
Debug plugin to track and gain insights on requests to your Craft site
README 文档
README
Outpost is a debug plugin for Craft CMS. It provides instruments to track and gain insights into requests, exceptions, events and logs.
Requirements
- Craft CMS 3.x
Installation
$ composer require johnnynotsolucky/outpost $ ./craft install/plugin outpost
Features
- Advanced request logging
- Request sampling
- Exception stacktraces
- Profiling
- Configurable
Configuration
- Include Control Panel Requests - Track Craft Control Panel requests.
- Automatic Purge Storage Limit - The amount of requests to store in the database. Setting to zero disables purging older requests.
- Request Sampling - Only track a sample of incoming requests. Uses whichever cache provider has been configured for Craft. Sampling occurs per unique URL, request method and response code. Request sampling should be enabled if you intend to use this plugin on a production site.
- Request Sample Rate - Percentage of requests to sample.
- Request Sample Period - Period in seconds to measure request frequency.
- Minimum Log Level - Minimum log level to store for all requests.
- Minimum Log Level for Exceptions - When an exception is tracked, increase the log output.
- View Grouped Items - When available, group similar tracked items, e.g. Exceptions by exception class.
Purging
If you intend on using this plugin on a production site, it is recommended that automatic purges are disabled, and to instead setup a cronjob.
Using the Control Panel
In Outpost settings, all tracked requests and related data can be cleared with the "Purge Requests" button.
Using a Terminal
Purge all requests
$ ./craft outpost/purge
Purge old requests
Retains the latest 100 requests:
$ ./craft outpost/purge --keep 100
Retains the latest 1000 requests:
$ ./craft outpost/purge -k 1000
johnnynotsolucky/outpost 适用场景与选型建议
johnnynotsolucky/outpost 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3.6k 次下载、GitHub Stars 达 5, 最近一次更新时间为 2019 年 01 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「logging」 「debug」 「debugging」 「cms」 「logs」 「Craft」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 johnnynotsolucky/outpost 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 johnnynotsolucky/outpost 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 johnnynotsolucky/outpost 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Debug your SimpleBus EventBus and CommandBus
nice output for debug functions for PHP 5.3
A PHP package that takes a snapshot of your application and allows you to retrieve it later to help with debugging.
A Zend Framework module that sets up Monolog for logging in applications.
Laravel Database Query Logger and debug helper.
Analysis module for finding problematical shop data.
统计信息
- 总下载量: 3.6k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2019-01-08
