Message

public struct Message : ExpressibleByStringLiteral, Equatable, CustomStringConvertible, ExpressibleByStringInterpolation

Logger.Message represents a log message’s text. It is usually created using string literals.

Example creating a Logger.Message:

let world: String = "world"
let myLogMessage: Logger.Message = "Hello \(world)"

Most commonly, Logger.Messages appear simply as the parameter to a logging method such as:

logger.info("Hello \(world)")