Kirin 4d67c98a58 1 | vor 1 Jahr | |
---|---|---|
.. | ||
src | vor 1 Jahr | |
.gitignore | vor 1 Jahr | |
LICENSE | vor 1 Jahr | |
README.md | vor 1 Jahr | |
composer.json | vor 1 Jahr |
写入LOG日志,要求PHP7.1+。
composer require topthink/think-log
use think\facade\Log;
Log::init([
'default' => 'file',
'channels' => [
'file' => [
'type' => 'file',
'path' => './logs/',
],
],
]);
Log::error('error info');
Log::info('log info');
Log::save();