dingDingRobot = $dingDingRobot; } /** * Writes the record down to the log of the implementing handler * * @param array $record * @return void */ protected function write(array $record) { $this->dingDingRobot->markdown( env('APP_ENV').'ERROR级别日志', "## [ERROR级别日志]\n{$record['formatted']}" ); } }