PayloadValueLogFormatter
public struct PayloadValueLogFormatter: LogFormatter
A LogFormatter that returns the message content of a LogEntry whose
payload is a .value 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.valuevalue.
View on GitHub
PayloadValueLogFormatter Struct Reference