Versions in this module Expand all Collapse all v1 v1.5.2 Jun 10, 2025 Changes in this version + func DecisionIDFromContext(ctx context.Context) (string, bool) + func NewContext(parent context.Context, val *RequestContext) context.Context + func WithDecisionID(parent context.Context, id string) context.Context + func WithHTTPRequestContext(parent context.Context, val *HTTPRequestContext) context.Context + type HTTPRequestContext struct + Header http.Header + func HTTPRequestContextFromContext(ctx context.Context) (*HTTPRequestContext, bool) + type Level uint8 + const Debug + const Error + const Info + const Warn + type Logger interface + Debug func(fmt string, a ...any) + Error func(fmt string, a ...any) + GetLevel func() Level + Info func(fmt string, a ...any) + SetLevel func(Level) + Warn func(fmt string, a ...any) + WithFields func(map[string]any) Logger + type NoOpLogger struct + func NewNoOpLogger() *NoOpLogger + func (*NoOpLogger) Debug(string, ...any) + func (*NoOpLogger) Error(string, ...any) + func (*NoOpLogger) Info(string, ...any) + func (*NoOpLogger) Warn(string, ...any) + func (l *NoOpLogger) GetLevel() Level + func (l *NoOpLogger) SetLevel(level Level) + func (l *NoOpLogger) WithFields(fields map[string]any) Logger + type RequestContext struct + ClientAddr string + HTTPRequestContext HTTPRequestContext + ReqID uint64 + ReqMethod string + ReqPath string + func FromContext(ctx context.Context) (*RequestContext, bool) + func (rctx RequestContext) Fields() logrus.Fields + type StandardLogger struct + func Get() *StandardLogger + func New() *StandardLogger + func (l *StandardLogger) Debug(fmt string, a ...any) + func (l *StandardLogger) Error(fmt string, a ...any) + func (l *StandardLogger) GetLevel() Level + func (l *StandardLogger) Info(fmt string, a ...any) + func (l *StandardLogger) SetFormatter(formatter logrus.Formatter) + func (l *StandardLogger) SetLevel(level Level) + func (l *StandardLogger) SetOutput(w io.Writer) + func (l *StandardLogger) Warn(fmt string, a ...any) + func (l *StandardLogger) WithFields(fields map[string]any) Logger