Kirin b3d2bbd089 1 | 2 rokov pred | |
---|---|---|
.. | ||
src | 2 rokov pred | |
.gitignore | 2 rokov pred | |
LICENSE | 2 rokov pred | |
README.md | 2 rokov pred | |
composer.json | 2 rokov pred |
写入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();