earthit/logging
最新稳定版本:1.1.1
Composer 安装命令:
composer require earthit/logging
包简介
Simple callback-based logging infrastructure
README 文档
README
This is an exceedingly simple framework for logging arbitrary events.
A logger is simply a function that is called with a single argument, which is a representation of the event to be logged. The only constraint is that said log event should be either a string or an object that supports __toString.
One event class is predefined, EarthIT_Logging_AnnotatedEvent. This wraps another log event and associated metadata such as log level or begin and end times, which your logging function may look at.
A LogHelperGears trait is defind that makes it easier to
create and log EarthIT_Logging_AnnotatedEvents by calling
$this->debug(...), $this->log(...), or $this->warn(...).
A few basic logging classes are provided, also.
统计信息
- 总下载量: 4.28k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-01-04