unreal4u/dummy-logger
Composer 安装命令:
composer require unreal4u/dummy-logger
包简介
Dummy logger that implements PSR-3 so that my own classes can work with a common base
README 文档
README
Lightweight PSR-3 compatible Logging Framework for PHP7+ which, as the name implies, does not log or do anything else.
This class only exists because I often will create my packages with a lot of debugging and other statements, and I see myself on the necessity of having this class defined in the package itself, which breaks the rule that a package should do one and only one thing correctly.
If you are facing the same problem, you can also use this class. It is released under the MIT license.
This class will also inherit some Monolog exclusive methods as I often see myself using these ones. New methods may be added in the future.
What is ...?
PSR-3
PSR-3 came into life as a way to create a common interface for Logger Frameworks: this way, you can rewrite libraries to
receive a Psr\Log\LoggerInterface object and write logs to it in a simple and universal way.
Monolog
Monolog is the de-facto standard framework used by the PHP community in order to log stuff. You can check the Monolog's homepage here.
Clarifications
No tests needed because this package does not do any processing of data. In the event that it will in the future, tests will be added.
unreal4u/dummy-logger 适用场景与选型建议
unreal4u/dummy-logger 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 153.63k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2018 年 01 月 02 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 unreal4u/dummy-logger 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 unreal4u/dummy-logger 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 153.63k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 16
- 依赖项目数: 5
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-01-02