Versions in this module Expand all Collapse all v0 v0.1.0 Sep 1, 2026 Changes in this version + const FieldCapabilities + const FieldForwardedFor + const FieldOperation + const FieldOrganizationID + const FieldRealIP + const FieldRemoteIP + const FieldRequestID + const FieldRequestProtocol + const FieldSubjectEmail + const FieldSubjectID + const FieldTrueClientIP + const FieldUserAgent + func BenignError(err error) bool + func ErrorEvent(ctx context.Context, err error) *zerolog.Event + func FromContext(ctx context.Context) *zerolog.Logger + func LoggingMiddleware(config Config) echo.MiddlewareFunc + func MatchEchoLevel(level log.Lvl) (zerolog.Level, log.Lvl) + func Middleware(config MiddlewareConfig) echo.MiddlewareFunc + func RequestErrorLevel(err error, status int) zerolog.Level + func SeedContext(ctx context.Context) context.Context + func SlogLogger(l zerolog.Logger) *slog.Logger + func WithField(ctx context.Context, key string, value any) context.Context + func WithFields(ctx context.Context, fields map[string]any) context.Context + type Config struct + AttachRequestMetadata bool + HandleError bool + Logger *Logger + RequestIDHeader string + RequestIDKey string + Skipper middleware.Skipper + type LogFields map[string]any + func FieldsFromContext(ctx context.Context) LogFields + type Logger struct + func (l *Logger) Debug(i ...any) + func (l *Logger) Debugf(format string, i ...any) + func (l *Logger) Debugj(j log.JSON) + func (l *Logger) Error(err error) + func (l *Logger) Errorf(format string, i ...any) + func (l *Logger) Errorj(j log.JSON) + func (l *Logger) Fatal(i ...any) + func (l *Logger) Fatalf(format string, i ...any) + func (l *Logger) Fatalj(j log.JSON) + func (l *Logger) Info(i ...any) + func (l *Logger) Infof(format string, i ...any) + func (l *Logger) Infoj(j log.JSON) + func (l *Logger) Level() log.Lvl + func (l *Logger) Output() io.Writer + func (l *Logger) Panic(i ...any) + func (l *Logger) Panicf(format string, i ...any) + func (l *Logger) Panicj(j log.JSON) + func (l *Logger) Prefix() string + func (l *Logger) Print(i ...any) + func (l *Logger) Printf(format string, i ...any) + func (l *Logger) Printj(j log.JSON) + func (l *Logger) SetHeader(_ string) + func (l *Logger) SetLevel(level log.Lvl) + func (l *Logger) SetOutput(newOut io.Writer) + func (l *Logger) SetPrefix(newPrefix string) + func (l *Logger) Unwrap() zerolog.Logger + func (l *Logger) Warn(i ...any) + func (l *Logger) Warnf(format string, i ...any) + func (l *Logger) Warnj(j log.JSON) + func (l *Logger) WithContext(ctx context.Context) context.Context + func (l *Logger) Write(p []byte) (n int, err error) + type LoggerConfig struct + IncludeCaller bool + IncludeStack bool + Level zerolog.Level + Pretty bool + SetGlobal bool + WithEcho bool + Writer io.Writer + type LoggerSet struct + Echo *Logger + Logger zerolog.Logger + func Configure(cfg LoggerConfig) LoggerSet + type MiddlewareConfig struct + AttachRequestMetadata bool + HandleError bool + Logger *Logger + RequestIDHeader string + RequestIDKey string + Skipper func(c *echo.Context) bool