Documentation ¶ Index ¶ Variables func FromContext(ctx context.Context) *zap.Logger func NewContext(ctx context.Context, l *zap.Logger) context.Context func NewLoggerWithOptions(opt Options) (*zap.Logger, error) type Options Constants ¶ This section is empty. Variables ¶ View Source var DefaultOptions = Options{ Format: "text", Level: zapcore.InfoLevel, Out: os.Stdout, } Functions ¶ func FromContext ¶ func FromContext(ctx context.Context) *zap.Logger func NewContext ¶ func NewContext(ctx context.Context, l *zap.Logger) context.Context func NewLoggerWithOptions ¶ func NewLoggerWithOptions(opt Options) (*zap.Logger, error) Types ¶ type Options ¶ type Options struct { Format string Level zapcore.Level Out io.Writer } Source Files ¶ View all Source files logger.go Click to show internal directories. Click to hide internal directories.