Documentation ¶
Index ¶
- Variables
- func DebugCtx(ctx context.Context, message any)
- func DebugWithDataCtx(ctx context.Context, message any, data any)
- func DebugWithFieldCtx(ctx context.Context, message string, fields ...zap.Field)
- func DebugfCtx(ctx context.Context, template string, args ...any)
- func ErrorCtx(ctx context.Context, message any)
- func ErrorWithDataCtx(ctx context.Context, message any, data any)
- func ErrorWithFieldCtx(ctx context.Context, message string, fields ...zap.Field)
- func ErrorfCtx(ctx context.Context, template string, args ...any)
- func FatalCtx(ctx context.Context, message any)
- func FatalWithDataCtx(ctx context.Context, message any, data any)
- func FatalWithFieldCtx(ctx context.Context, message string, fields ...zap.Field)
- func FatalfCtx(ctx context.Context, template string, args ...any)
- func InfoCtx(ctx context.Context, message any)
- func InfoWithDataCtx(ctx context.Context, message any, data any)
- func InfoWithFieldCtx(ctx context.Context, message string, fields ...zap.Field)
- func InfofCtx(ctx context.Context, template string, args ...any)
- func Init(isProd bool)
- func NewContext(parent context.Context) context.Context
- func PanicCtx(ctx context.Context, message any)
- func PanicWithDataCtx(ctx context.Context, message any, data any)
- func PanicWithFieldCtx(ctx context.Context, message string, fields ...zap.Field)
- func PanicfCtx(ctx context.Context, template string, args ...any)
- func WarnCtx(ctx context.Context, message any)
- func WarnWithDataCtx(ctx context.Context, message any, data any)
- func WarnWithFieldCtx(ctx context.Context, message string, fields ...zap.Field)
- func WarnfCtx(ctx context.Context, template string, args ...any)
Constants ¶
This section is empty.
Variables ¶
var ( Info printWrapper Infof printfWrapper Debug printWrapper Debugf printfWrapper Error printWrapper Errorf printfWrapper Fatal printWrapper Fatalf printfWrapper Panic printWrapper Panicf printfWrapper Warn printWrapper Warnf printfWrapper )
Functions ¶
func DebugWithDataCtx ¶
DebugWithDataCtx logs a message at level Debug on the logger associated with the context.
func DebugWithFieldCtx ¶
DebugWithFieldCtx logs a message at level Debug on the logger associated with the context.
func ErrorWithDataCtx ¶
ErrorWithDataCtx logs a message at level Error on the logger associated with the context.
func ErrorWithFieldCtx ¶
ErrorWithFieldCtx logs a message at level Error on the logger associated with the context.
func FatalWithDataCtx ¶
FatalWithDataCtx logs a message at level Fatal on the logger associated with the context.
func FatalWithFieldCtx ¶
FatalWithFieldCtx logs a message at level Fatal on the logger associated with the context.
func InfoWithDataCtx ¶
InfoWithDataCtx logs a message at level Info on the logger associated with the context.
func InfoWithFieldCtx ¶
InfoWithFieldCtx logs a message at level Info on the logger associated with the context.
func NewContext ¶
NewContext returns a new context with the logger instance.
func PanicWithDataCtx ¶
PanicWithDataCtx logs a message at level Panic on the logger associated with the context.
func PanicWithFieldCtx ¶
PanicWithFieldCtx logs a message at level Panic on the logger associated with the context.
func WarnWithDataCtx ¶
WarnWithDataCtx logs a message at level Warn on the logger associated with the context.
func WarnWithFieldCtx ¶
WarnWithFieldCtx logs a message at level Warn on the logger associated with the context.
Types ¶
This section is empty.