PayloadMessageLogFormatter
public struct PayloadMessageLogFormatter: LogFormatter
A LogFormatter that returns the message content of a LogEntry whose
payload is a .message value.
-
The initializer.
Declaration
Swift
public init() -
Formats the passed-in
LogEntryby returning a string representation of itspayloadproperty.Declaration
Swift
public func format(_ entry: LogEntry) -> String?Parameters
entryThe
LogEntryto be formatted.Return Value
The message content, or
nilifentrydoesn’t have apayloadwith a.messagevalue.
View on GitHub
PayloadMessageLogFormatter Struct Reference