lightsource/log
Composer 安装命令:
composer require lightsource/log
包简介
Class for logging with multiple levels and support multi-thread working
README 文档
README
What is it
PSR-3 compatible logging with multiple levels and support multi-thread working
Installation
composer require lightsource/log
Example of usage
require_once __DIR__ . '/vendor/autoload.php';
$settings = new \LightSource\Log\Settings();
$settings->setPathToLogDir(__DIR__ . DIRECTORY_SEPARATOR . 'Logs');
$logger = new \LightSource\Log\Logger($settings);
$logger->debug('New log line', [
'someData' => 'test',
]);
Example of output
DEBUG : ClassName : New log line
ClassName->methodName ; PreviousClass->method2 ; PreviousClass->method1
info : <!-- Array
(
[someData] => test
) -->
2021-10-04 18:17:40
统计信息
- 总下载量: 567
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-only
- 更新时间: 2020-06-05