Files
full/shared/logging/context.go

14 lines
382 B
Go
Raw Normal View History

// Package logging centralizes application logging without coupling services to a framework.
package logging
import (
"context"
"log/slog"
)
// Context returns the process logger. The context parameter keeps call sites ready for
// a future trace-aware handler without imposing one on every service today.
func Context(_ context.Context) *slog.Logger {
return slog.Default()
}