mirror of
https://github.com/apple/swift-log
synced 2026-11-24 03:47:49 +00:00
This proposal introduces an **attributed metadata system** that allows attaching attributes to metadata values. Privacy level is the first concrete attribute, enabling developers to mark metadata values as `.private` or `.public` so `LogHandler` implementations can redact sensitive values before logging. ### Motivation: SwiftLog lacks a mechanism to attach attributes to metadata values as sensitive to allow Log Handlers to control logging behavior. ### Modifications: Added the SLG-004 proposal, introducing attributed metadata values mechanism and privacy levels for metadata values. ### Result: Proposal is ready for review. Review result: the proposal is not accepted and needs rework.