Versions in this module Expand all Collapse all v0 v0.0.13 Apr 21, 2019 Changes in this version + var DefaultOptions = &Options + func CheckErr(msg string, err error, fields ...zapcore.Field) + func CheckErrCtx(ctx context.Context, msg string, err error, fields ...zapcore.Field) + func SafeClose(c io.Closer, msg string, fields ...zapcore.Field) + func SetLogger(instance LoggerFactory) + func Setup(ctx context.Context, opts *Options) + type Logger interface + Debug func(msg string, fields ...zapcore.Field) + Error func(msg string, fields ...zapcore.Field) + Fatal func(msg string, fields ...zapcore.Field) + Info func(msg string, fields ...zapcore.Field) + Warn func(msg string, fields ...zapcore.Field) + With func(fields ...zapcore.Field) Logger + func Bg() Logger + func For(ctx context.Context) Logger + type LoggerFactory interface + Bg func() Logger + For func(context.Context) Logger + With func(...zapcore.Field) LoggerFactory + func Default() LoggerFactory + func NewFactory(logger *zap.Logger) LoggerFactory + type Options struct + AppID string + AppName string + Debug bool + LogLevel string + Revision string + SentryDSN string + Version string Other modules containing this package github.com/Stoakes/go-pkg/log