Documentation
¶
Index ¶
- Constants
- Variables
- func DPanic(ctx context.Context, msg string, fields ...zap.Field)
- func Debug(ctx context.Context, msg string, fields ...zap.Field)
- func Error(ctx context.Context, msg string, fields ...zap.Field)
- func Fatal(ctx context.Context, msg string, fields ...zap.Field)
- func GetLogger(key string) *zap.Logger
- func GetTraceID(ctx context.Context) string
- func Info(ctx context.Context, msg string, fields ...zap.Field)
- func LevelOf(level Level) zapcore.Level
- func NewCtx(traceIds ...string) context.Context
- func Panic(ctx context.Context, msg string, fields ...zap.Field)
- func Warn(ctx context.Context, msg string, fields ...zap.Field)
- type Level
Constants ¶
View Source
const ( DebugLevel = "debug" InfoLevel = "info" WarnLevel = "warn" ErrorLevel = "error" )
Variables ¶
View Source
var Console *zap.Logger
View Source
var Logger *zap.Logger
Functions ¶
func GetTraceID ¶ added in v0.0.38
Types ¶
Click to show internal directories.
Click to hide internal directories.