public function delete($date, IndexListener $listener)
    {
        try {
            app('antares.logger')->setOld(['name' => $this->logViewer->get($date)->getFilename()])->keep('high');
            $this->logViewer->delete($date);
            return $listener->deleteSuccess();
        } catch (Exception $ex) {
            return $listener->deleteFailed();
        }
    }
public function delete($date, IndexListener $listener)
    {
        try {
            app('antares.logger')->setOld(['name' => $this->logViewer->get($date)->getFilename()])->keep('high');
            $this->logViewer->delete($date);
            return $listener->deleteSuccess();
        } catch (Exception $ex) {
            return $listener->deleteFailed();
        }
    }
public function delete ( $ date , IndexListener $ listener ) { try { app ( 'antares.logger' ) -> setOld ( [ 'name' => $ this -> logViewer -> get ( $ date ) -> getFilename ( ) ] ) -> keep ( 'high' ) ; $ this -> logViewer -> delete ( $ date ) ; return $ listener -> deleteSuccess ( ) ; } catch ( Exception $ ex ) { return $ listener -> deleteFailed ( ) ; } }
on delete error log

@param String $date
@param IndexListener $listener
@return RedirectResponse
on delete error log