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.Message
s appear simply as the parameter to a logging method such as:
logger.info("Hello \(world)")
-
Declaration
Swift
public typealias StringLiteralType = String
-
Declaration
Swift
public init(stringLiteral value: String)
-
Declaration
Swift
public var description: String { get }