SeverityStyle
public enum SeverityStyle
Specifies the manner in which LogSeverity values should be rendered by
the SeverityLogFormatter.
-
Specifies how a
See moreLogSeverityvalue should be represented in text.Declaration
Swift
public enum TextRepresentation
-
Indicates that the
LogSeveritywill be output as a human-readable string with initial capitalization. No padding, truncation or alignment will occur.Declaration
Swift
case simple
-
Indicates that the
LogSeveritywill be output using defaults suitable for viewing within Xcode. The current implementation uses aTextRepresentationof.colorCoded, making it easier to spot important messages in the Xcode console.Declaration
Swift
case xcode
-
Indicates that the
LogSeveritywill be output as an integer contained in a string. No padding, truncation or alignment will occur.Declaration
Swift
case numeric
-
Allows customization of the
SeverityStyle. TheLogSeverityvalue will be converted to text as specified by theTextRepresentationvalue. If a value is provided fortruncateAtWidth, fields longer than that will be truncated. Finally, ifpadToWidthis supplied, the field will be padded with spaces as appropriate. The value ofrightAligndetermines how padding occurs.Declaration
Swift
case custom(textRepresentation: TextRepresentation, truncateAtWidth: Int?, padToWidth: Int?, rightAlign: Bool)
View on GitHub
SeverityStyle Enum Reference