LogMessage
public struct LogMessage
The customized representation of a type, used when configuring os_log inputs.
-
The C-style format string.
Declaration
Swift
public let format: StaticString -
The argument list (what you would otherwise pass as a comma-delimited list of variadic arguments to
os_log).Warning
Attempting to initialize with more than nine arguments will trip an assertion.Declaration
Swift
public let args: [CVarArg] -
Primary Initializer
Declaration
Swift
public init(_ format: StaticString, _ args: CVarArg...) -
Convenience initializer.
Use this initializer if you are forwarding a
CVarArg...list from a calling Swift function and need to prevent the compiler from treating a single value as an implied array containing that single value, e.g. from an inferingArray<Int>from a singleIntargument.Declaration
Swift
public init(format: StaticString, array args: [CVarArg])