# \[Proposal\] SLG-0004: Metadata values privacy attribute

**URL:** <https://forums.swift.org/t/proposal-slg-0004-metadata-values-privacy-attribute/85249>\
**Category:** Development\
**Tags:** swift-log\
**Created:** [March 10, 2026, 12:09pm UTC](https://forums.swift.org/t/proposal-slg-0004-metadata-values-privacy-attribute/85249 "2026-03-10T12:09:18Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![FranzBusch](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/franzbusch/32/19447_2.png) [@FranzBusch](https://forums.swift.org/u/FranzBusch)\
**Post date:** [March 19, 2026, 1:40pm UTC](https://forums.swift.org/t/proposal-slg-0004-metadata-values-privacy-attribute/85249/15 "2026-03-19T13:40:24Z")

</div>

> [@johannesweiss](#):
>
> You mean essentially we'd specify a fixed `OptionSet` of `privacyPrivate`, `privacyPublic`, `privacyRestricted`, `systemMetric`, `typeInt`, `typeFloat`, `typeString`, `typeBool`, `typeURL`, ... in `swift-log` itself instead of making this extensible by others? It would of course make the "registration aspect" easy because there's a fixed list. I don't love it, I don't hate it.

Correct. I think we have somewhat reached consensus here that there is a value in additional attributes for metadata values with privacy levels being one of them. I think fully generalized metadata attributes are interesting but bring a lot of complexity. I think we should start with a small and strongly opinionated set from `swift-log`. In the future, we can explore extending this to customizable attributes, but I remain skeptical that this won't lead to a tighter coupling of libraries and log handlers.

---

_[View the full topic](https://forums.swift.org/t/proposal-slg-0004-metadata-values-privacy-attribute/85249)._
