SeverityLogFormatter
public struct SeverityLogFormatter: LogFormatter
A LogFormatter that returns a string representation of the passed-in
LogEntry‘s severity.
This is typically combined with other LogFormatters within a
ConcatenatingLogFormatter.
-
The
SeverityStylethat determines the return value of the receiver’sformat(_:)function.Declaration
Swift
public let style: SeverityStyle -
Initializes a new
SeverityLogFormatterto use the specifiedSeverityStylewhen formatting output.Declaration
Swift
public init(style: SeverityStyle = .simple)Parameters
styleThe
SeverityStyleto use.
View on GitHub
SeverityLogFormatter Struct Reference