<!--
{
  "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/sensitive",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "os"
    ],
    "preciseIdentifier" : "s:2os12OSLogPrivacyV9sensitiveACvpZ"
  },
  "title" : "sensitive"
}
-->

# sensitive

The option to always redact interpolated values that contain sensitive information.

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

## Discussion

This option behaves identically to the [`private`](/documentation/os/OSLogPrivacy/private) option. 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 [`sensitive(mask:)`](/documentation/os/OSLogPrivacy/sensitive(mask:)) function to create the 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)