LogMessage

Not available in Objective-C.
Swift
public struct LogMessage: CustomStringConvertible

A log message generated by the library for the client to include in their logs. These messages are intended to be human-readable although the audience is primarily app developers; these are not intended for end users.


Topics

Types

typealias Handler

A log message handler callback that can be passed to PersistentContainer.init(...) or PersistentCloudKitContainer.init(...) to receive various informational messages that may be of interest to clients for their own logs.

Declaration
Swift
public typealias Handler = (LogMessage) -> Void

Properties

var body: () -> String

A closure that vends the text of the log message.

Declaration
Swift
public let body: () -> String

var description: String

A string combining level and body.

Declaration
Swift
public var description: String { get }

var level: LogLevel

The category of the log message.

Declaration
Swift
public let level: LogLevel