lilei/my-mono-log
Composer 安装命令:
composer require lilei/my-mono-log
包简介
README 文档
README
对 monolog/monolog 扩展包进行封装、调整,让其在项目里简单易用。
安装
$ composer require lilei/my-mono-log
日志输出目录
project_root/monolog/,如果你需要修改的日志输出目录,请自行修改
src\MyMonoLog.php->setDirname()
$MyMonoLog = new MyMonoLog();
$MyMonoLog->setDirname("my-dirname")->write(string $channel, string|array $message);
package
使用到的扩展包:
- monolog/monolog
- phpunit/phpunit
测试
$ vendor/bin/phpunit tests/MyMonoLogTest.php --filter testWrite
$ vendor/bin/phpunit tests/MyMonoLogTest.php --filter testInfo
使用
$MyMonoLog = new MyMonoLog();
$MyMonoLog->write(string $channel, string|array $message);
$MyMonoLog->channel(string $channel)->info(string|array $message);
统计信息
- 总下载量: 22
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-12-20