Documentation ¶
Index ¶
Constants ¶
View Source
const ServiceLoggerKey string = "service"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ILogger ¶
type ILogger interface { Debug(context.Context, string, ...zap.Field) Info(context.Context, string, ...zap.Field) Warn(context.Context, string, ...zap.Field) Error(context.Context, string, ...zap.Field) DPanic(context.Context, string, ...zap.Field) Panic(context.Context, string, ...zap.Field) Fatal(context.Context, string, ...zap.Field) WithFields(fields ...zap.Field) ILogger WithService(string) ILogger ToZap() *zap.Logger ToZapCtx(context.Context) *zap.Logger }
func DefaultLogger ¶
Click to show internal directories.
Click to hide internal directories.