logging

package
v0.1.0-rc.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package logging provides structured logging helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithRequestFields

func ContextWithRequestFields(ctx context.Context, fields *RequestFields) context.Context

func SetActorID

func SetActorID(ctx context.Context, actorID string)

func SetTenantID

func SetTenantID(ctx context.Context, tenantID string)

Types

type RedactingHandler

type RedactingHandler struct{ slog.Handler }

func (RedactingHandler) Handle

func (h RedactingHandler) Handle(ctx context.Context, record slog.Record) error

type RequestFields

type RequestFields struct {
	RequestID string
	TenantID  string
	ActorID   string
}

func RequestFieldsFromContext

func RequestFieldsFromContext(ctx context.Context) RequestFields

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL