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

# auto

The standard option to let the system determine whether to redact or display a value.

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

## Discussion

Use this option to apply the default rules for redacting or showing interpolated values. 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 [`auto(mask:)`](/documentation/os/OSLogPrivacy/auto(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)