DelimiterLogFormatter

public struct DelimiterLogFormatter: LogFormatter

A LogFormatter used to output field separator strings.

This is typically combined with other LogFormatters within a ConcatenatingLogFormatter.

  • The DelimiterStyle that determines the return value of the receiver’s format(_:) function.

    Declaration

    Swift

    public let style: DelimiterStyle
  • Initializes a new DelimiterLogFormatter instance using the given DelimiterStyle.

    Declaration

    Swift

    public init(style: DelimiterStyle = .spacedPipe)
  • Returns the value of the separatorString property from the receiver’s style property.

    Declaration

    Swift

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

    Parameters

    entry

    Ignored by this implementation.

    Return Value

    The value of style.delimiter property; never nil.