func LoggingService(service *logging.Service) Option {
	return func(h *Hook) error {
		h.service = service.Entries
		return nil
	}
}
LoggingService is an option that sets the Google API logging service to use.
package sdhook
import (
	"errors"
	"fmt"
	"io/ioutil"
	"net/http"
	"cloud.google.com/go/compute/metadata"
	"github.com/fluent/fluent-logger-golang/fluent"
	"github.com/kenshaw/jwt/gserviceaccount"
	"github.com/sirupsen/logrus"
	"golang.org/x/oauth2"
	"golang.org/x/oauth2/google"
	errorReporting "google.golang.org/api/clouderrorreporting/v1beta1"
	logging "google.golang.org/api/logging/v2"
)
type Option func(*Hook) error
func Levels(levels ...logrus.Level) Option {
	return func(h *Hook) error {
		h.levels = levels
		return nil
	}
}
func ProjectID(projectID string) Option {
	return func(h *Hook) error {
		h.projectID = projectID
		return nil
	}
}
func EntriesService(service *logging.EntriesService) Option {
	return func(h *Hook) error {
		h.service = service
		return nil
	}
}