Versions in this module Expand all Collapse all v0 v0.0.11 Mar 7, 2024 Changes in this version + const DebugLevel + const ErrorLevel + const FatalLevel + const InfoLevel + const LOG_LEVEL_ENV_VAR + const RFC3339TrailingNano + const RequestIDContextKey + const WarnLevel + func Debug(ctx context.Context, msg string, keysAndValues ...interface{}) + func DebugNoCtx(msg string, keysAndValues ...interface{}) + func Debugf(ctx context.Context, fs string, args ...interface{}) + func DebugfNoCtx(fs string, args ...interface{}) + func Debugv(ctx context.Context, skip int, msg string, keysAndValues ...interface{}) + func Error(ctx context.Context, msg string, keysAndValues ...interface{}) + func ErrorAndReturn(ctx context.Context, msg string, keysAndValues ...interface{}) error + func ErrorNoCtx(msg string, keysAndValues ...interface{}) + func ErrorNoCtxAndReturn(msg string, keysAndValues ...interface{}) error + func Errorf(ctx context.Context, fs string, args ...interface{}) + func ErrorfAndReturn(ctx context.Context, fs string, args ...interface{}) error + func ErrorfNoCtx(fs string, args ...interface{}) + func Errorv(ctx context.Context, skip int, msg string, keysAndValues ...interface{}) + func ErrorvAndReturn(ctx context.Context, skip int, msg string, keysAndValues ...interface{}) error + func Fatal(ctx context.Context, msg string, keysAndValues ...interface{}) + func FatalNoCtx(msg string, keysAndValues ...interface{}) + func Fatalf(ctx context.Context, fs string, args ...interface{}) + func FatalfNoCtx(fs string, args ...interface{}) + func Fatalv(ctx context.Context, skip int, msg string, keysAndValues ...interface{}) + func Info(ctx context.Context, msg string, keysAndValues ...interface{}) + func InfoNoCtx(msg string, keysAndValues ...interface{}) + func Infof(ctx context.Context, fs string, args ...interface{}) + func InfofNoCtx(fs string, args ...interface{}) + func Infov(ctx context.Context, skip int, msg string, keysAndValues ...interface{}) + func InjectTestLogger(testLogger *zap.SugaredLogger) + func SetLoggerConfig(config Config) + func SetLoggerLevel(level zapcore.Level) + func Warn(ctx context.Context, msg string, keysAndValues ...interface{}) + func WarnNoCtx(msg string, keysAndValues ...interface{}) + func Warnf(ctx context.Context, fs string, args ...interface{}) + func WarnfNoCtx(fs string, args ...interface{}) + func Warnv(ctx context.Context, skip int, msg string, keysAndValues ...interface{}) + func WithGinRequestID(ctx *gin.Context) + func WithRequestID(ctx context.Context, requestID uuid.UUID) context.Context + type Config struct + Level zapcore.Level + OutputPaths []string + type Logger struct + func GetNewLoggerWithDefaultFields(addedInfo ...interface{}) *Logger + func NewLogger(config Config) *Logger + func NewLoggerFromCore(lager *zap.SugaredLogger) *Logger + func NewLoggerWithDefaultFields(config Config, defaultFields []interface{}) *Logger + func (l *Logger) Debug(ctx context.Context, msg string, keysAndValues ...interface{}) + func (l *Logger) DebugNoCtx(msg string, keysAndValues ...interface{}) + func (l *Logger) Debugf(ctx context.Context, fs string, args ...interface{}) + func (l *Logger) Debugv(ctx context.Context, skip int, msg string, keysAndValues ...interface{}) + func (l *Logger) Error(ctx context.Context, msg string, keysAndValues ...interface{}) + func (l *Logger) ErrorAndReturn(ctx context.Context, msg string, keysAndValues ...interface{}) error + func (l *Logger) ErrorNoCtx(msg string, keysAndValues ...interface{}) + func (l *Logger) ErrorNoCtxAndReturn(msg string, keysAndValues ...interface{}) error + func (l *Logger) Errorf(ctx context.Context, fs string, args ...interface{}) + func (l *Logger) ErrorfAndReturn(ctx context.Context, fs string, args ...interface{}) error + func (l *Logger) Errorv(ctx context.Context, skip int, msg string, keysAndValues ...interface{}) + func (l *Logger) ErrorvAndReturn(ctx context.Context, skip int, msg string, keysAndValues ...interface{}) error + func (l *Logger) Fatal(ctx context.Context, msg string, keysAndValues ...interface{}) + func (l *Logger) FatalNoCtx(msg string, keysAndValues ...interface{}) + func (l *Logger) Fatalf(ctx context.Context, fs string, args ...interface{}) + func (l *Logger) Fatalv(ctx context.Context, skip int, msg string, keysAndValues ...interface{}) + func (l *Logger) Info(ctx context.Context, msg string, keysAndValues ...interface{}) + func (l *Logger) InfoNoCtx(msg string, keysAndValues ...interface{}) + func (l *Logger) Infof(ctx context.Context, fs string, args ...interface{}) + func (l *Logger) Infov(ctx context.Context, skip int, msg string, keysAndValues ...interface{}) + func (l *Logger) Warn(ctx context.Context, msg string, keysAndValues ...interface{}) + func (l *Logger) WarnNoCtx(msg string, keysAndValues ...interface{}) + func (l *Logger) Warnf(ctx context.Context, fs string, args ...interface{}) + func (l *Logger) Warnv(ctx context.Context, skip int, msg string, keysAndValues ...interface{})