/think-log

Primary LanguagePHPApache License 2.0Apache-2.0

think-log

写入LOG日志,支持文件及SocketLog。

安装

composer require topthink/think-log

用法:

$log = new \think\Log;
$log->init([
	'type'=>'file',
	'path'=>'./runtime/logs/',
]);
$log->record('error info','error');
$log->error('error info');
$log->info('log info');
$log->save();