ProcessIDLogFormatter

public struct ProcessIDLogFormatter: LogFormatter

A LogFormatter that returns the string representation of a LogEntry‘s processID property.

This is typically combined with other LogFormatters within a ConcatenatingLogFormatter.

  • The initializer.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Parameters

    entry

    The LogEntry to be formatted.

    Return Value

    The formatted result; never nil.