<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "os",
  "identifier" : "/documentation/os/OSLogPrivacy/private",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "os"
    ],
    "preciseIdentifier" : "s:2os12OSLogPrivacyV7privateACvpZ"
  },
  "title" : "private"
}
-->

# private

The standard option to always redact the interpolated value.

```
static var `private`: OSLogPrivacy { get }
```

## Discussion

When it redacts a value, the system displays a generic string in place of the value. If you want to correlate log messages that contain the same value, use the [`private(mask:)`](/documentation/os/OSLogPrivacy/private(mask:)) function to create a structure with the [`OSLogPrivacy.Mask.hash`](/documentation/os/OSLogPrivacy/Mask/hash) mask.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)