LogFormatter

public protocol LogFormatter

LogFormatters are used to attempt to create string representations of LogEntry instances.

  • Called to create a string representation of the passed-in LogEntry.

    Declaration

    Swift

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

    Parameters

    entry

    The LogEntry to attempt to convert into a string.

    Return Value

    A String representation of entry, or nil if the receiver could not format the LogEntry.