PayloadTraceLogFormatter
public struct PayloadTraceLogFormatter: LogFormatter
A LogFormatter that returns the callingStackFrame of a LogEntry whose
payload is .trace.
-
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
entry.callingStackFrame, ornilifentrydoesn’t have apayloadwith a.tracevalue.
View on GitHub
PayloadTraceLogFormatter Struct Reference