ximeng1987/think-1987

v2.0 2018-06-17 04:08 UTC

This package is not auto-updated.

Last update: 2024-03-17 02:42:30 UTC


README

写入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();