Versions in this module Expand all Collapse all v0 v0.1.1 May 2, 2023 Changes in this version + func NewTrace2() traceLoggerInternal + func WithTraceLogger(ctx context.Context, mainFunc func(context.Context, TraceLogger)) + type Trace2 struct + func (t *Trace2) ChildProcess(ctx context.Context, cmd *exec.Cmd) (func(error), func()) + func (t *Trace2) Error(ctx context.Context, err error) error + func (t *Trace2) Errorf(ctx context.Context, format string, a ...any) error + func (t *Trace2) Exit(ctx context.Context, exitCode int) + func (t *Trace2) Fatal(ctx context.Context, err error) + func (t *Trace2) Fatalf(ctx context.Context, format string, a ...any) + func (t *Trace2) LogCommand(ctx context.Context, commandName string) context.Context + func (t *Trace2) Region(ctx context.Context, category string, label string) (context.Context, func()) + type TraceLogger interface + ChildProcess func(ctx context.Context, cmd *exec.Cmd) (func(error), func()) + Error func(ctx context.Context, err error) error + Errorf func(ctx context.Context, format string, a ...any) error + Exit func(ctx context.Context, exitCode int) + Fatal func(ctx context.Context, err error) + Fatalf func(ctx context.Context, format string, a ...any) + LogCommand func(ctx context.Context, commandName string) context.Context + Region func(ctx context.Context, category string, label string) (context.Context, func())