rxlisbest / easylog
php log output
Installs: 26
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/rxlisbest/easylog
This package is auto-updated.
Last update: 2025-09-23 23:57:52 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");