func NewGcpLogClient(
	projectID, logName string,
) (*GcpLogClient, error) {
	c := GcpLogClient{}
	ctx := context.Background()
	logClient, err := logging.NewClient(ctx, projectID)
	if err != nil {
		return nil, err
	}
	c.logClient = logClient
	c.loggers[IndexLogInfo] = logClient.
		Logger(logName).StandardLogger(logging.Info)
	c.loggers[IndexLogError] = logClient.
		Logger(logName).StandardLogger(logging.Error)
	c.loggers[IndexLogAlert] = logClient.
		Logger(logName).StandardLogger(logging.Alert)
	return &c, nil
}
NewGcpLogClient returns a new LoggingFacility that logs to GCP resources. As
such, it requires the GCP projectID as well as the logName to log to.
package logclient
import (
	"context"
	"log"
	"cloud.google.com/go/logging"
)
type GcpLogClient struct {
	logClient *logging.Client
	loggers   [3]*log.Logger
}
func (c *GcpLogClient) Close() error {
	return c.logClient.Close()
}
func (c *GcpLogClient) GetInfoLogger() *log.Logger {
	return c.loggers[IndexLogInfo]
}
func (c *GcpLogClient) GetErrorLogger() *log.Logger {
	return c.loggers[IndexLogError]
}
func (c *GcpLogClient) GetAlertLogger() *log.Logger {
	return c.loggers[IndexLogAlert]
}