Versions in this module Expand all Collapse all v0 v0.0.1 Sep 22, 2024 Changes in this version + func DefaultEctoLogFunc(msg EctoLogMessage) + type EctoLogFunc func(msg EctoLogMessage) + type EctoLogMessage struct + Ctx context.Context + Err error + Fields map[string]interface{} + Level string + Message string + type EctoLogger struct + func (l *EctoLogger) Debug(msg string) + func (l *EctoLogger) DebugContext(ctx context.Context, msg string) + func (l *EctoLogger) DebugContextf(ctx context.Context, format string, args ...any) + func (l *EctoLogger) Debugf(format string, args ...any) + func (l *EctoLogger) Error(msg string) + func (l *EctoLogger) ErrorContext(ctx context.Context, msg string) + func (l *EctoLogger) ErrorContextf(ctx context.Context, format string, args ...any) + func (l *EctoLogger) Errorf(format string, args ...any) + func (l *EctoLogger) Fatal(msg string) + func (l *EctoLogger) FatalContext(ctx context.Context, msg string) + func (l *EctoLogger) FatalContextf(ctx context.Context, format string, args ...any) + func (l *EctoLogger) Fatalf(format string, args ...any) + func (l *EctoLogger) Info(msg string) + func (l *EctoLogger) InfoContext(ctx context.Context, msg string) + func (l *EctoLogger) InfoContextf(ctx context.Context, format string, args ...any) + func (l *EctoLogger) Infof(format string, args ...any) + func (l *EctoLogger) Warn(msg string) + func (l *EctoLogger) WarnContext(ctx context.Context, msg string) + func (l *EctoLogger) WarnContextf(ctx context.Context, format string, args ...any) + func (l *EctoLogger) Warnf(format string, args ...any) + func (l *EctoLogger) WithContext(ctx context.Context) Logger + func (l *EctoLogger) WithError(err error) Logger + func (l *EctoLogger) WithField(key string, value interface{}) Logger + func (l *EctoLogger) WithFields(fields map[string]interface{}) Logger + type Logger interface + Debug func(msg string) + DebugContext func(ctx context.Context, msg string) + DebugContextf func(ctx context.Context, format string, args ...any) + Debugf func(format string, args ...any) + Error func(msg string) + ErrorContext func(ctx context.Context, msg string) + ErrorContextf func(ctx context.Context, format string, args ...any) + Errorf func(format string, args ...any) + Fatal func(msg string) + FatalContext func(ctx context.Context, msg string) + FatalContextf func(ctx context.Context, format string, args ...any) + Fatalf func(format string, args ...any) + Info func(msg string) + InfoContext func(ctx context.Context, msg string) + InfoContextf func(ctx context.Context, format string, args ...any) + Infof func(format string, args ...any) + Warn func(msg string) + WarnContext func(ctx context.Context, msg string) + WarnContextf func(ctx context.Context, format string, args ...any) + Warnf func(format string, args ...any) + WithContext func(ctx context.Context) Logger + WithError func(err error) Logger + WithField func(key string, value interface{}) Logger + WithFields func(fields map[string]interface{}) Logger + func NewDefaultEctoLogger() Logger + func NewEctoLogger(logFunc EctoLogFunc) Logger