LogMessage
struct LogMessage: Equatable, Identifiable
The structure for a log message
-
Give it an unique ID
Declaration
Swift
var id: UUID = UUID() -
The date and time of the log item
Declaration
Swift
var time: Date = .now -
The type of log message
Declaration
Swift
var type: OSLogEntryLog.Level = .notice -
The optional line number of the source
Declaration
Swift
var lineNumber: Int? -
The category of the log
Declaration
Swift
var category: String = "Unknown" -
The log message
Declaration
Swift
var message: String = "There are currently no messages"
View on GitHub