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

# OSLogBoolFormat

The formatting options for Boolean values.

```
enum OSLogBoolFormat
```

## Topics

### Getting the Boolean Format Options

[`OSLogBoolFormat.truth`](/documentation/os/OSLogBoolFormat/truth)

An option to format Boolean values as true or false strings.

[`OSLogBoolFormat.answer`](/documentation/os/OSLogBoolFormat/answer)

An option to format Boolean values as yes or no strings.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

---

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)