Documentation
¶
Index ¶
- func Default() *slog.Logger
- func ErrAttr(err error) slog.Attr
- func From(ctx context.Context) *slog.Logger
- func New(w io.Writer, level slog.Level, format Format, stacktrace bool) *slog.Logger
- func Quiet()
- func RedactOptions() []masq.Option
- func SetDefault(logger *slog.Logger)
- func With(ctx context.Context, logger *slog.Logger) context.Context
- type Format
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RedactOptions ¶ added in v0.3.0
RedactOptions returns this project's redaction policy: the `masq:"secret"` struct tag, the `secret_` field prefix, and the Authorization field name (a header map key cannot carry a struct tag).
It is exported because the logger is no longer the only consumer. The agent runtime renders a failed tool call's goerr values into the message the model is given (pkg/agent/kernel, toolErrorValuesMiddleware), which sends them to the LLM provider — so it has to redact by the same policy. Two independently maintained lists would drift, and the half that drifts is the one nobody notices until a value is already at a third party.
func SetDefault ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.