Documentation ¶
Index ¶
- func ChangeConfig(override func(*zap.Config))
- func Debug(ctx context.Context, msg string, keyVal ...any)
- func Error(ctx context.Context, msg string, keyVal ...any)
- func Fatal(ctx context.Context, msg string, keyVal ...any)
- func Info(ctx context.Context, msg string, keyVal ...any)
- func Panic(ctx context.Context, msg string, keyVal ...any)
- func Print(vals ...any)
- func SetLevel(name string)
- func With(ctx context.Context, keyVal ...any) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeConfig ¶
ChangeConfig allows to override default zap logger config from init function
func Error ¶
Error used to handle exceptional case. You can use `Error(ctx, "some msg", err)` as shorthand for `Error(ctx, "some msg", "error", err)“
func Print ¶
func Print(vals ...any)
Print is very simple func that works like log.Print but create json and add " " separator to values *should be used for temprorary debug only
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.