The message arguments for a particular entry.


class OSLogMessageComponent : NSObject


There is one component for each placeholder in the formatString plus one component for any text after the last placeholder.


Reading the Argument

var argument: OSLogMessageComponent.Argument

The argument passed into the message component.

enum OSLogMessageComponent.Argument

An object representing data that corresponds to an argument in a message payload.

var argumentCategory: OSLogMessageComponent.ArgumentCategory

The type of argument that corresponds to the placeholder.

enum OSLogMessageComponent.ArgumentCategory

The data type corresponding to the argument provided in a message payload.

Reading the Message Component

var formatSubstring: String

The text immediately preceding a placeholder.

var placeholder: String

The placeholder text for the message component.

Accessing the Argument

var argumentDataValue: Data?

The argument formatted as a sequence of bytes.

var argumentDoubleValue: Double

The argument formatted as a double.

var argumentInt64Value: Int64

The argument formatted as a signed 64-bit integer.

var argumentNumberValue: NSNumber?

The argument formatted as a number.

var argumentStringValue: String?

The argument formatted as a string.

var argumentUInt64Value: UInt64

The argument formatted as an unsigned 64-bit integer.


Inherits From

Conforms To

See Also

Entry Data

class OSLogPosition

A representation of a point in a sequence of entries in the unified logging system.