Message
Logger.Message
represents a log message’s text. It is usually created using string literals.
struct Message
Example creating a Logger.Message
:
let world: String = "world"
let myLogMessage: Logger.Message = "Hello \(world)"
Most commonly, Logger.Message
s appear simply as the parameter to a logging method such as:
logger.info("Hello \(world)")