CallingThreadLogFormatter
public struct CallingThreadLogFormatter: LogFormatter
A LogFormatter that returns a string representation of a LogEntry‘s
callingThreadID.
This is typically combined with other LogFormatters within a
ConcatenatingLogFormatter.
-
Governs how the receiver represents
callingThreadIDs.Declaration
Swift
public let style: CallingThreadStyle -
The
CallingThreadLogFormatterinitializer.Declaration
Swift
public init(style: CallingThreadStyle = .hex) -
Formats the passed-in
LogEntryby returning a string representation of itscallingThreadID. The format is governed by the value of the receiver’sstyleproperty.Declaration
Swift
public func format(_ entry: LogEntry) -> String?Parameters
entryThe
LogEntryto format.Return Value
The formatted result; never
nil.
View on GitHub
CallingThreadLogFormatter Struct Reference