appendInterpolation(_:format:privacy:)
Appends an interpolated 32-bit integer.
Declaration
mutating func appendInterpolation(_ number: @autoclosure @escaping () -> Int32, format: OSLogInt32ExtendedFormat, privacy: OSLogPrivacy = .auto)Parameters
- number:
The 32-bit integer value to add to the message.
- format:
The format to apply to the integer value. You format integers as decimal, hexadecimal, or octal values. If you don’t specify this parameter, the default format uses a decimal value. For more information, see Oslogintegerformatting.
- privacy:
The privacy level of the information. If you don’t specify this parameter, the system uses the default rules to determine whether to show the information.
Discussion
Don’t call this function directly. The system calls it automatically when interpolating values of this type. When specifying the value in your string, you may include any of the indicated parameters to change the default presentation of that value.