30/01
2018
think log
写入LOG日志,支持文件及SocketLog。, (*1)
安装, (*2)
composer require topthink/think-log
用法:, (*3)
$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();