Skip to content

SLG-0004: Metadata privacy levels proposal#416

Merged
kukushechkin merged 5 commits into
apple:mainfrom
kukushechkin:SLG-0004-metadata-privacy-levels
Apr 2, 2026
Merged

SLG-0004: Metadata privacy levels proposal#416
kukushechkin merged 5 commits into
apple:mainfrom
kukushechkin:SLG-0004-metadata-privacy-levels

Conversation

@kukushechkin

Copy link
Copy Markdown
Contributor

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.

@kukushechkin kukushechkin added the semver/none No version bump required. label Feb 17, 2026
@kukushechkin
kukushechkin marked this pull request as ready for review February 18, 2026 00:39
@czechboy0

Copy link
Copy Markdown
Contributor

Looks good, let's kick off the review

@samuelmurray

Copy link
Copy Markdown
Contributor

Addresses #204 (comment added for discoverability from issue)

@kukushechkin
kukushechkin force-pushed the SLG-0004-metadata-privacy-levels branch from f208e30 to 78c8b05 Compare March 20, 2026 12:23
@kukushechkin
kukushechkin merged commit 6558438 into apple:main Apr 2, 2026
62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver/none No version bump required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants