---
title: "appendInterpolation(_:format:privacy:attributes:)"
framework: os
role: symbol
role_heading: Instance Method
path: "os/osloginterpolation/appendinterpolation(_:format:privacy:attributes:)-4i2ir"
---

# appendInterpolation(_:format:privacy:attributes:)

Appends an interpolated 32-bit integer with the specified attributes.

## Declaration

```swift
mutating func appendInterpolation(_ number: @autoclosure @escaping () -> Int32, format: OSLogInt32ExtendedFormat, privacy: OSLogPrivacy = .auto, attributes: String)
```

## Parameters

- `number`: The interpolated 32-bit integer. The system automatically wraps this value in a closure.
- `format`: The format to apply to the value when the system renders it in a log message. For more information, see doc://com.apple.os/documentation/os/OSLogInt32ExtendedFormat.
- `privacy`: The privacy level of the value, which the system applies when it renders the value in a log message. For more information, see doc://com.apple.os/documentation/os/OSLogPrivacy. The default value is doc://com.apple.os/documentation/os/OSLogPrivacy/auto.
- `attributes`: Additional information about the value. Tools that process log messages interpret these attributes, which you typically provide as key-value pairs. For example, Instruments processes any e_ngineering types_ you embed in this value. For more information, see https://help.apple.com/instruments/developer/mac/current/#/devcd5016d31.

## Discussion

Discussion important: You don’t call this method directly. Instead, the framework calls it automatically when you append an interpolated 32-bit integer to a log message.

## See Also

### Appending Signed Integers

- [appendInterpolation(_:format:align:privacy:)](os/osloginterpolation/appendinterpolation(_:format:align:privacy:)-8kli1.md)
- [appendInterpolation(_:format:align:privacy:)](os/osloginterpolation/appendinterpolation(_:format:align:privacy:)-5ihzf.md)
- [appendInterpolation(_:format:align:privacy:)](os/osloginterpolation/appendinterpolation(_:format:align:privacy:)-190d0.md)
- [appendInterpolation(_:format:privacy:)](os/osloginterpolation/appendinterpolation(_:format:privacy:)-3ji02.md)
- [appendInterpolation(_:format:align:privacy:)](os/osloginterpolation/appendinterpolation(_:format:align:privacy:)-2sb1i.md)
- [appendInterpolation(_:format:align:privacy:)](os/osloginterpolation/appendinterpolation(_:format:align:privacy:)-802m9.md)
