appendInterpolation(_:privacy:attributes:)
Appends an interpolated object description with the specified attributes.
Declaration
mutating func appendInterpolation(_ argumentObject: @autoclosure @escaping () -> NSObject, privacy: OSLogPrivacy = .auto, attributes: String)Parameters
- argumentObject:
The interpolated object, which the system automatically wraps in a closure. The object itself doesn’t appear in the log message. Instead, the system calls the object’s Description method and incorporates the value it returns.
- privacy:
The privacy level of the interpolated 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 interpolated 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.