Documentation ¶
Overview ¶
Logger
Index ¶
Constants ¶
View Source
const ( // Zap implementation Zap int = iota // Logrus implementation Logrus )
Variables ¶
View Source
var ErrInvalidLoggerInstance = errors.New("invalid logger instance")
ErrInvalidLoggerInstance is an error when logger instance is invalid
Functions ¶
Types ¶
type Logger ¶
type Logger interface { Fatal(msg string, fields ...field.Fields) FatalWithContext(ctx context.Context, msg string, fields ...field.Fields) Error(msg string, fields ...field.Fields) ErrorWithContext(ctx context.Context, msg string, fields ...field.Fields) Warn(msg string, fields ...field.Fields) WarnWithContext(ctx context.Context, msg string, fields ...field.Fields) Info(msg string, fields ...field.Fields) InfoWithContext(ctx context.Context, msg string, fields ...field.Fields) Debug(msg string, fields ...field.Fields) DebugWithContext(ctx context.Context, msg string, fields ...field.Fields) Get() any // Closer is the interface that wraps the basic Close method. io.Closer }
Logger is our contract for the logger
Click to show internal directories.
Click to hide internal directories.