public function getData($date, $level = null)
    {
        if (!is_string($level)) {
            $level = 'all';
        }

        $data = LogViewer::data($date, $level);
        $paginator = new Paginator($data, $this->perPage);

        $path = (new \ReflectionClass($paginator))->getProperty('path');
        $path->setAccessible(true);
        $path->setValue($paginator, URL::route('logviewer.index').'/'.$date.'/'.$level);

        if (count($data) > $paginator->perPage()) {
            $log = array_slice($data, $paginator->firstItem() - 1, $paginator->perPage());
        } else {
            $log = $data;
        }

        return View::make('logviewer::data', compact('paginator', 'log'));
    }