public function getActivity($log, $page = 1, $amount = 10, $options = [])
    {
        if ($log == 'change') {
            $repo = $this->changeRepository;
        } elseif ($log == 'system') {
            $repo = $this->systemRepository;
        } else {
            throw new \UnexpectedValueException("Invalid log type requested: $log");
        }

        try {
            $rows = $repo->getActivity($page, $amount, $options);
            $rowcount = $repo->getActivityCount($options);
        } catch (TableNotFoundException $e) {
            return null;
        }

        // Set up the pager

        /** @var \Bolt\Pager\PagerManager $manager */
        $manager = $this->app['pager'];
        $manager->createPager('activity')
            ->setCount($rowcount)
            ->setTotalpages(ceil($rowcount / $amount))
            ->setCurrent($page)
            ->setShowingFrom(($page - 1) * $amount + 1)
            ->setShowingTo(($page - 1) * $amount + count($rows));

        return $rows;
    }