I have watched through the WWDC 2020 and thought I would switch my code to use the new Logger syntax.
I often want to print the value of optional variables which I can do with the simple print command. If I try this with the new Logger commands I get a "Cannot convert value of type 'String?' to expected argument type 'NSObject'" error. What is the recommended way of doing this with Logger?
import os
let logger = Logger(subsystem: "com.example.Fruta", category: "giftcards")
let myOptional: String?
logger.log ("MyOptional is \(myOptional)")