package
0.11.3
Repository: https://github.com/google/cloudprober.git
Documentation: pkg.go.dev

# Functions

New returns a new Logger object with cloud logging client initialized if running on GCE.
NewCloudproberLog is a convenient wrapper around New that sets context to context.Background and attaches cloudprober prefix to log names.

# Constants

MaxLogEntrySize Max size of each log entry (100 KB) This limit helps avoid creating very large log lines in case someone accidentally creates a large EventMetric, which in turn is possible due to unbounded nature of "map" metric where keys are created on demand.

# Variables

EnvVars defines environment variables that can be used to modify the logging behavior.
LogPrefixEnvVar environment variable is used to determine the stackdriver log name prefix.

# Structs

Logger implements a logger that logs messages to Google Cloud Logging.