文件:\vendor\topthink\fr
函数:record
public function record($msg, string $type = 'info', array $context = [], bool $lazy = true)
{
static $int_id=null;
if($int_id===null){
$int_id = rand(100000000,900000000);
}
$msg="[{$int_id}] ".$msg;
$channel = $this->getConfig('type_channel.' . $type);
$this->channel($channel)->record($msg, $type, $context, $lazy);
return $this;
}
最佳答案
