/** * 共通のアクセスログに概要を記録 * @param self $log */ private static function writeMailErrorLogFile(self $log) { $timestamp = $log->timestamp; $remoteIp = $log->remoteIp; $logContents = $log->getContents(); $logFile = new MailErrorLogFile($timestamp, $remoteIp); $logFile->setLogContents($logContents); $logFile->write(); }