Versions in this module Expand all Collapse all v1 v1.5.0 Mar 6, 2018 Changes in this version + const DBInstanceKey + const DBRetentionKey + const DBShardGroupKey + const DBShardIDKey + const OperationElapsedKey + const OperationEventKey + const OperationNameKey + const TimeFormat + const TraceIDKey + func Database(name string) zapcore.Field + func DurationLiteral(key string, val time.Duration) zapcore.Field + func IsTerminal(w io.Writer) bool + func New(w io.Writer) *zap.Logger + func NewOperation(log *zap.Logger, msg, name string, fields ...zapcore.Field) (*zap.Logger, func()) + func OperationElapsed(d time.Duration) zapcore.Field + func OperationEventEnd() zapcore.Field + func OperationEventStart() zapcore.Field + func OperationName(name string) zapcore.Field + func RetentionPolicy(name string) zapcore.Field + func Shard(id uint64) zapcore.Field + func ShardGroup(id uint64) zapcore.Field + func TraceID(id string) zapcore.Field + type Config struct + Format string + Level zapcore.Level + SuppressLogo bool + func NewConfig() Config + func (c *Config) New(defaultOutput io.Writer) (*zap.Logger, error)