ProcessNameLogFormatter

public struct ProcessNameLogFormatter: LogFormatter

A LogFormatter that returns a LogEntry‘s processName property.

This is typically combined with other LogFormatters within a ConcatenatingLogFormatter.

  • The initializer.

    Declaration

    Swift

    public init()
  • Formats the passed-in LogEntry by returning its processName property.

    Declaration

    Swift

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

    Parameters

    entry

    The LogEntry to be formatted.

    Return Value

    The formatted result; never nil.