Documentation ¶
Index ¶
- func Debug(ctx context.Context, msg string, fields ...zap.Field)
- func Error(ctx context.Context, msg string, err error, fields ...zap.Field)
- func ErrorIfExists(ctx context.Context, err error, msg string, fields ...zap.Field)
- func Info(ctx context.Context, msg string, fields ...zap.Field)
- func LogWithLevel(ctx context.Context, level zapcore.Level, msg string, fields ...zap.Field)
- func Must(logger *zap.Logger, err error) *zap.Logger
- func New(env string) (*zap.Logger, error)
- func Warning(ctx context.Context, msg string, fields ...zap.Field)
- func WarningWithError(ctx context.Context, msg string, err error, fields ...zap.Field)
- type LogFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorIfExists ¶
ErrorIfExists ... calls Errorf only when the error exists
func LogWithLevel ¶
LogWithLevel ... output by log level
Types ¶
Click to show internal directories.
Click to hide internal directories.