package
0.8.2
Repository: https://github.com/ncruces/go-gcp.git
Documentation: pkg.go.dev

# README

Google Cloud Logging in Go for App Engine, Kubernetes Engine, Cloud Run, and Cloud Functions

PkgGoDev

# Functions

Alert logs when a person must take an action immediately.
Alertf logs when a person must take an action immediately.
Alertj logs when a person must take an action immediately.
Alertln logs when a person must take an action immediately.
Alertw logs when a person must take an action immediately.
Critical logs events that cause more severe problems or outages.
Criticalf logs events that cause more severe problems or outages.
Criticalj logs events that cause more severe problems or outages.
Criticalln logs events that cause more severe problems or outages.
Criticalw logs events that cause more severe problems or outages.
Debug logs debug or trace information.
Debugf logs debug or trace information.
Debugj logs debug or trace information.
Debugln logs debug or trace information.
Debugw logs debug or trace information.
Emergency logs when one or more systems are unusable.
Emergencyf logs when one or more systems are unusable.
Emergencyj logs when one or more systems are unusable.
Emergencyln logs when one or more systems are unusable.
Emergencyw logs when one or more systems are unusable.
Error logs events likely to cause problems.
Errorf logs events likely to cause problems.
Errorj logs events likely to cause problems.
Errorln logs events likely to cause problems.
Errorw logs events likely to cause problems.
ForContext creates a Logger with metadata from a context.Context.
ForRequest creates a Logger with metadata from an http.Request.
Info logs routine information, such as ongoing status or performance.
Infof logs routine information, such as ongoing status or performance.
Infoj logs routine information, such as ongoing status or performance.
Infoln logs routine information, such as ongoing status or performance.
Infow logs routine information, such as ongoing status or performance.
Notice logs normal but significant events, such as start up, shut down, or configuration.
Noticef logs normal but significant events, such as start up, shut down, or configuration.
Noticej logs normal but significant events, such as start up, shut down, or configuration.
Noticeln logs normal but significant events, such as start up, shut down, or configuration.
Noticew logs normal but significant events, such as start up, shut down, or configuration.
Print logs an entry with no assigned severity level.
Printf logs an entry with no assigned severity level.
Printj logs an entry with no assigned severity level.
Println logs an entry with no assigned severity level.
Printw logs an entry with no assigned severity level.
SetupLogger sets up a log.Logger to output structured logs at the default severity level.
Warning logs events that might cause problems.
Warningf logs events that might cause problems.
Warningj logs events that might cause problems.
Warningln logs events that might cause problems.
Warningw logs events that might cause problems.

# Variables

LogSourceLocation should be set to false to avoid associating source code location information with the entry.
ProjectID should be set to the Google Cloud project ID.

# Structs

A Logger that logs entries with additional context.