protected function getLogglyHandler()
    {
        $token = Arr::path($this->config, 'loggly.token');

        if (! $token) {
            throw new ConfigException('Loggly is enabled but the token is not set.');
        }

        return new LogglyHandler($token, Logger::INFO);
    }