swiftui logs code example
Example 1: swiftui console log
Print("Here I am", varOne, varTwo ...)
Example 2: swift writing to ios logs
extension Logger {
private static var subsystem = Bundle.main.bundleIdentifier!
/// Logs the view cycles like viewDidLoad.
static let viewCycle = Logger(subsystem: subsystem, category: "viewcycle")
}