Documentation ¶
Overview ¶
Package zapgcp is a simple package for configuring a zap (go.uber.org/zap) logger for use with Google Cloud Platform's Cloud Logging infrastructure. The production config is based on this example: https://github.com/uber-go/zap/issues/1095#issuecomment-1149455643
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { // Local determines whether to use a local development config, which is tuned // for readability in a console, or the production config, which is meant to be // consumed by GCP Cloud Logging. Local bool // MinLogLevel sets the lowest level to actually output logs for. MinLogLevel zapcore.Level Options []zap.Option }
Click to show internal directories.
Click to hide internal directories.