Default

public enum Default

Default values used for TextFormat

Available Defaults

  • Default template to use to output message in.

    Default:

    "%{date} %{processName}[%{processIdentifier}:%{threadIdentifier}] %{level}: <%{tag}> %{message}"
    

    Example output:

    1970-01-01 00:00:00.000 ExampleProcess[100:1100] INFO: <ExampleTag> Example message.
    

    Declaration

    Swift

    public static let template: String
  • Default DateFormatter for this writer if one is not supplied.

    Default:

     "yyyy-MM-dd HH:mm:ss.SSS"
    

    Example output:

    "2016-04-23 10:34:26.849"
    

    Declaration

    Swift

    public static let dateFormatter: DateFormatter
  • A set of options to apply to the output.

    Default:

    An empty set.
    

    Declaration

    Swift

    public static let options: Set<TextFormat.Option>
  • Encoding of the output of the formatter.

    Default:

    String.Encoding.utf8
    

    Declaration

    Swift

    public static let encoding: String.Encoding
  • The terminator to use at the end of each entry.

    Default:

    "\n"
    

    Declaration

    Swift

    public static let terminator: String