unax/logger
Composer 安装命令:
composer require unax/logger
包简介
Logger with eight methods for writing logs to the eight RFC 5424 levels (debug, info, notice, warning, error, critical, alert, emergency).
README 文档
README
Unax Logger
DefaultLogger class is available for logging. The DefaultLogger includes eight methods for writing logs to the eight RFC 5424 levels (debug, info, notice, warning, error, critical, alert, emergency).
Example Usage
require(__DIR__ . '/vendor/autoload.php');
\Unax\Logger\LogHandlerFile::setLogHandlerFile(__DIR__ . '/debug.log');
\Unax\Logger\Logger::setLogThreshold('info');
$logger = \Unax\Logger\Logger::getLogger();
$logger->info('Hello World!');
Default log destination is PHP error_log() destination. Default logging threshold is 'error'. Everything below treshold will be skipped.
Support
Unax Logger is supported by Unax. Comments are welcome on support@unax.org.
统计信息
- 总下载量: 57
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-only
- 更新时间: 2021-04-05