public function export()
    {
        $delimiter   = $this->getParameter('field_delimiter', ',');
        $enclosure   = $this->getParameter('field_encloser', '"');
        $sortBy      = $this->getParameter('sortby', '');
        $sortOrder   = $this->getParameter('sortorder', '');

        $exportParameters = [];

        if ($this->hasRequestParameter('filtercolumns')) {
            $parameters = $this->getRequestParameter('filtercolumns');

            if (is_array($parameters)) {
                $exportParameters = $parameters;
            }
        }

        $csvExporter = new LogEntryCsvStdOutExporter(
            new LogEntryRepository($exportParameters, $sortBy, $sortOrder),
            $delimiter,
            $enclosure
        );

        setcookie('fileDownload', 'true', 0, '/');
        $csvExporter->export();
    }