fae/logging
最新稳定版本:1.0.2
Composer 安装命令:
composer require fae/logging
包简介
Logging framework
README 文档
README
This is a simple backport of the ARIA logging interface to FAE.
Example basic usage
use FAE\logging\logger;
...
logger::log()->debug('This is a test with the fae log object!');
Example using a new channel
Channels allow you to namespace error messages for e.g. a specific subsystem.
logger::log('subsystem')->debug('This is a test with the fae log object!');
Example using special logger
The default log interface is to output to the PHP error log. You may want to specify a channel that outputs somewhere else - a slack channel or similar.
For this you want to include an array of one or more handlers, that will be passed to the default Monolog Logger interface.
logger::register('customloggerchannel', [
new CustomHandler()
]);
logger::log('customloggerchannel')->debug('This is a test with the fae log object!');
统计信息
- 总下载量: 1.42k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-or-later
- 更新时间: 2021-02-05