SeverityStyle
public enum SeverityStyle
Specifies the manner in which LogSeverity
values should be rendered by
the SeverityLogFormatter
.
-
Specifies how a
See moreLogSeverity
value should be represented in text.Declaration
Swift
public enum TextRepresentation
-
Indicates that the
LogSeverity
will be output as a human-readable string with initial capitalization. No padding, truncation or alignment will occur.Declaration
Swift
case simple
-
Indicates that the
LogSeverity
will be output using defaults suitable for viewing within Xcode. The current implementation uses aTextRepresentation
of.colorCoded
, making it easier to spot important messages in the Xcode console.Declaration
Swift
case xcode
-
Indicates that the
LogSeverity
will 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
. TheLogSeverity
value will be converted to text as specified by theTextRepresentation
value. If a value is provided fortruncateAtWidth
, fields longer than that will be truncated. Finally, ifpadToWidth
is supplied, the field will be padded with spaces as appropriate. The value ofrightAlign
determines how padding occurs.Declaration
Swift
case custom(textRepresentation: TextRepresentation, truncateAtWidth: Int?, padToWidth: Int?, rightAlign: Bool)