CallingThreadLogFormatter

public struct CallingThreadLogFormatter: LogFormatter

A LogFormatter that returns a hexadecimal string representation of a LogEntry’s callingThreadID.

This is typically combined with other LogFormatters within a ConcatenatingLogFormatter.

  • Class initializer.

    Declaration

    Swift

    public init()
  • Formats the passed-in LogEntry by returning a hexadecimal string representation of its callingThreadID.

    Declaration

    Swift

    public func format(_ entry: LogEntry)
            -> String?

    Return Value

    The formatted result; never nil.