Versions in this module Expand all Collapse all v0 v0.0.2 Mar 12, 2021 Changes in this version + func Debug(args ...interface{}) + func Debugf(format string, values ...interface{}) + func Debugw(msg string, keysAndValues ...interface{}) + func Error(args ...interface{}) + func ErrorIf(err error, optionalMsg ...string) + func ErrorIfCalling(f func() error, optionalMsg ...string) + func Errorf(format string, values ...interface{}) + func Errorw(msg string, keysAndValues ...interface{}) + func Fatal(args ...interface{}) + func Fatalf(format string, values ...interface{}) + func Info(args ...interface{}) + func Infof(format string, values ...interface{}) + func Infow(msg string, keysAndValues ...interface{}) + func Panic(args ...interface{}) + func PanicIf(err error) + func Panicf(format string, values ...interface{}) + func SetLogger(newLogger *Logger) + func Sync() error + func Trace(args ...interface{}) + func Tracef(format string, values ...interface{}) + func Tracew(msg string, keysAndValues ...interface{}) + func Warn(args ...interface{}) + func WarnIf(err error) + func Warnf(format string, values ...interface{}) + func Warnw(msg string, keysAndValues ...interface{}) + type Logger struct + var Default *Logger + func CreateLogger(zl *zap.SugaredLogger) *Logger + func CreateMemoryTestLogger(lvl zapcore.Level) *Logger + func CreateProductionLogger(dir string, jsonConsole bool, lvl zapcore.Level, toDisk bool) *Logger + func CreateTestLogger(lvl zapcore.Level) *Logger + func (l *Logger) ErrorIf(err error, optionalMsg ...string) + func (l *Logger) ErrorIfCalling(f func() error, optionalMsg ...string) + func (l *Logger) PanicIf(err error) + func (l *Logger) WarnIf(err error) + func (l *Logger) Write(b []byte) (int, error) + type MemorySink struct + func MemoryLogTestingOnly() *MemorySink + func (s *MemorySink) Close() error + func (s *MemorySink) String() string + func (s *MemorySink) Sync() error + func (s *MemorySink) Write(p []byte) (n int, err error) + type PrettyConsole struct + func (pc PrettyConsole) Write(b []byte) (int, error)