LogEvent
public class LogEvent : UniquelyIdentifiable
A single log event.
This includes high level context information so that logs can identify more accurately what items relate to.
In the case of Feature
based apps, this means you can tell all the log activity that relates to a specific feature
just by looking at the logs. Even if it comes from different subsystems.
-
The date the event occurred
Declaration
Swift
public let date: Date
-
The date the event occurred
Declaration
Swift
public let sequenceID: UInt
-
A generated unique ID.
Declaration
Swift
public lazy var uniqueID: String { get set }
-
The level of the event
Declaration
Swift
public let level: LoggerLevel
-
The contextual information for the log event
Declaration
Swift
public let context: LogEventContext
-
The text to log
Declaration
Swift
public let text: String