DefaultColorTable
public struct DefaultColorTable: ColorTable
A default implementation of the ColorTable
protocol.
-
The constructor.
Declaration
Swift
public init()
-
Returns the foreground color to use (if any) for colorizing messages at the given
LogSeverity
.Declaration
Swift
public func foreground(forSeverity severity: LogSeverity) -> Color?
Parameters
severity
The
LogSeverity
whose color information is being retrieved.Return Value
The foreground
Color
to use forseverity
, ornil
if no color is specified.