Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct { // The Logger GoogleLogger *logging.Logger // If their was an error with the initialization, it won't log to the cloud InitError bool // The service that logging was created for ServiceName string // contains filtered or unexported fields }
Logger holds the newly generated error logging client, so that it can be used for our own, more simple custom logging functions instead of the ones the Google provides
func InitClient ¶
func InitClient(projectID string, credentialsJSON string, environment string, serviceName string) (Logger, error)
InitClient creates a logging client
Click to show internal directories.
Click to hide internal directories.