LiteralLogFormatter
public struct LiteralLogFormatter: LogFormatter
A LogFormatter that returns always returns a given literal string
regardless of input.
This is typically combined with other LogFormatters within a
ConcatenatingLogFormatter.
-
The literal string used as the return value of the receiver’s
format(_:)function.Declaration
Swift
public let literal: String -
Initializes a new
LiteralLogFormatterto contain the given string.Declaration
Swift
public init(_ string: String)Parameters
stringThe literal string.
View on GitHub
LiteralLogFormatter Struct Reference