appendInterpolation(_:format:privacy:attributes:)
Appends an interpolated 32-bit integer with the specified attributes.
Declaration
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 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 Oslogprivacy. The default value is 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 Devcd5016d31.