Documentation ¶
Index ¶
- Constants
- func GCPProject() string
- func InitGCPEnvironment(defaultProj string) (string, bool)
- func InitLogging(gcpproject string)
- func Log(payload string, severity Severity)
- func LogTrace(payload string, severity Severity, r *http.Request)
- func RunningInGCP() bool
- func ShouldLog(severity Severity) bool
- func Trace(r *http.Request) string
- type Severity
Constants ¶
View Source
const NoTrace string = ""
Variables ¶
This section is empty.
Functions ¶
func GCPProject ¶
func GCPProject() string
func InitGCPEnvironment ¶
Get the GCP project, and if we are running in cloud
Types ¶
Click to show internal directories.
Click to hide internal directories.