TextRepresentation
public enum TextRepresentation
Specifies how a LogSeverity value should be represented in text.
-
Specifies that the
LogSeverityshould be output as a human-readable word with the initial capitalization.Declaration
Swift
case capitalized
-
Specifies that the
LogSeverityshould be output as a human-readable word in all lowercase characters.Declaration
Swift
case lowercase
-
Specifies that the
LogSeverityshould be output as a human-readable word in all uppercase characters.Declaration
Swift
case uppercase
-
Specifies that the
rawValueof theLogSeverityshould be output as an integer within a string.Declaration
Swift
case numeric
-
Specifies that the
rawValueof theLogSeverityshould 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
LogSeverityvalue.Declaration
Swift
public func format(severity: LogSeverity) -> StringParameters
severityThe
LogSeverityfor which a text representation is sought.Return Value
A
Stringcontaining a text representation ofseverity.
View on GitHub
TextRepresentation Enum Reference