trigger_error(sprintf('%s:%s is deprecated since Shopware 5.6 and will be removed in 5.8. Use \Shopware\Controllers\Backend\Logger::createLogAction instead.', __CLASS__, __METHOD__
), E_USER_DEPRECATED
);
$this->
forward('createLog', 'logger', 'backend'
);
} /**
* @return void
*/
public function downloadLogFileAction() { $logDir =
$this->
get('kernel'
)->
getLogDir();
$files =
$this->
getLogFiles($logDir);
$logFile =
$this->
Request()->
getParam('logFile'
);
$logFile =
$this->
getLogFile($files,
$logFile);
if (!
$logFile) { throw new RuntimeException('Log file not found.'
);
} $logFilePath =
$logDir . '/' .
$this->
getLogFile($files,
$logFile);
$response =
$this->
Response();