Documentation
¶
Overview ¶
Package stackdriver implements a Stackdriver LogEntry support for zap package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStackdriverEncoder ¶
func NewStackdriverEncoderConfig ¶
func NewStackdriverEncoderConfig() zapcore.EncoderConfig
Types ¶
type HTTPRequest ¶
type HTTPRequest struct { Method string URL string UserAgent string Referrer string Status int RemoteIP string Latency time.Duration }
LINK: https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#HttpRequest
func (HTTPRequest) MarshalLogObject ¶
func (req HTTPRequest) MarshalLogObject(enc zapcore.ObjectEncoder) error
MarshalLogObject implements zapcore ObjectMarshaler.
type ServiceContext ¶
func (ServiceContext) MarshalLogObject ¶
func (sc ServiceContext) MarshalLogObject(enc zapcore.ObjectEncoder) error
MarshalLogObject implements zapcore ObjectMarshaler.
Click to show internal directories.
Click to hide internal directories.