TextRepresentation

public enum TextRepresentation

Specifies how a LogSeverity value should be represented in text.

  • Specifies that the LogSeverity should be output as a human-readable word with the initial capitalization.

    Declaration

    Swift

    case capitalized
  • Specifies that the LogSeverity should be output as a human-readable word in all lowercase characters.

    Declaration

    Swift

    case lowercase
  • Specifies that the LogSeverity should be output as a human-readable word in all uppercase characters.

    Declaration

    Swift

    case uppercase
  • Specifies that the rawValue of the LogSeverity should be output as an integer within a string.

    Declaration

    Swift

    case numeric
  • Specifies that the rawValue of the LogSeverity should be output as an emoji character whose color represents the level of severity. The specific characters used to represent each severity level may change over time, so this representation is not suitable for parsing.

    Declaration

    Swift

    case colorCoded
  • Returns a specific text representation of a given LogSeverity value.

    Declaration

    Swift

    public func format(severity: LogSeverity)
            -> String

    Parameters

    severity

    The LogSeverity for which a text representation is sought.

    Return Value

    A String containing a text representation of severity.