OutputStreamFormatter

public protocol OutputStreamFormatter

A formatter type for formating the output of a OutputStreamWriter type.

OutputStreamFormatter have one purpose in life, to convert a Writer.LogEntry into a formatted collection of bytes.

See also

TextFormat for concrete implementation of an OutputStreamFormatter.

See also

JSONFormat for concrete implementation of an OutputStreamFormatter.

Properties

  • The encoding that will be used to encode the message attribute of the Writer.LogEntry and the entire message if this is a String type output.

    Declaration

    Swift

    var encoding: String.Encoding { get }

Formatting Input