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

# maxOSLogArgumentCount

The maximum number of interpolated expressions that a log message may contain.

```
var maxOSLogArgumentCount: UInt8 { get }
```

## Discussion

For log messages that include interpolated values, the system imposes a limit on the total number of expressions that a single message may include. The following example shows a string that contains an interpolated value:

```swift
let fileID = 941
let message = "Created a file with ID \(fileID)"
```

---

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)