Skip to content

Comments

SLG-0004: Metadata privacy levels proposal#416

Open
kukushechkin wants to merge 4 commits intoapple:mainfrom
kukushechkin:SLG-0004-metadata-privacy-levels
Open

SLG-0004: Metadata privacy levels proposal#416
kukushechkin wants to merge 4 commits intoapple:mainfrom
kukushechkin:SLG-0004-metadata-privacy-levels

Conversation

@kukushechkin
Copy link
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
Contributor

Looks good, let's kick off the review

/// ])
/// ```
@frozen
public enum PrivacyLevel: String, CustomStringConvertible, Hashable, Sendable, CaseIterable, Codable {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

String conformance should be removed.

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.

2 participants