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 LogFormatter
s within a
ConcatenatingLogFormatter
.
-
The
SeverityStyle
that determines the return value of the receiver’sformat(_:)
function.Declaration
Swift
public let style: SeverityStyle
-
Initializes a new
SeverityLogFormatter
to use the specifiedSeverityStyle
when formatting output.Declaration
Swift
public init(style: SeverityStyle = .simple)
Parameters
style
The
SeverityStyle
to use.