Monolog coroutine stream handler based on swoole coroutine.
- Swoole2.1.0+ (编译时请添加参数 --enable-openssl --enable-coroutine)
- PHP7.1+
- 勿同时安装opencensus扩展,经测试有内存泄漏问题
composer require "luoxiaojun1992/monolog-co-stream-handler:*"
或添加 requirement 到 composer.json
{
"require": {
"luoxiaojun1992/monolog-co-stream-handler": "*"
}
}
请参考 tests/HandlerTests.php
Monolog coroutine stream handler based on swoole coroutine.
- Swoole2.1.0+ (compile with arguments --enable-openssl --enable-coroutine)
- PHP7.1+
- Don't install opencensus extension to avoiding memory leak.
composer require "luoxiaojun1992/monolog-co-stream-handler:*"
or add a requirement to composer.json
{
"require": {
"luoxiaojun1992/monolog-co-stream-handler": "*"
}
}
Please see tests/HandlerTests.php.