/**
* 写入日志 (使用tp自带驱动记录到runtime目录中)
* @param $value
* @param string $type
*/
function log_write($value, $type = 'info')
{
$msg = is_string($value) ? $value : var_export($value, true);
Log::record($msg, $type);
}
TP5 日志处理
猜你喜欢
转载自blog.csdn.net/weixin_40854327/article/details/113186554
今日推荐
周排行