rxlisbest / easylog
php log output
2.0.0
2018-11-09 06:07 UTC
This package is auto-updated.
Last update: 2025-03-23 23:03:47 UTC
README
Installation
composer require rxlisbest/easylog=~2.0.0
Usage
use rxlisbest\easylog\EasyLog;
EasyLog::start();
EasyLog::info("Single line progress log output starts");
$total = 10; // 处理总条数
for($i = 0; $i <= $total; $i ++){
EasyLog::processLine($i, $total, 'warning');
sleep(1);
}
EasyLog::info("Single line progress log output end");
EasyLog::info("Multi-line progress log output starts");
for($i = 0; $i <= $total; $i ++){
EasyLog::process($i, $total);
sleep(1);
}
EasyLog::info("Multi-line progress log output end");
EasyLog::end();
EasyLog::warning("It is warning");
EasyLog::error("It is error");
EasyLog::primary("It is primary");