TextColorizer
public protocol TextColorizer
TextColorizer
s are used to apply color formatting to log messages.
-
Applies the specified foreground and background
Color
s to the passed-in string.Parameters
string
The string to be colorized.
foreground
An optional foreground color to apply to
string
.background
An optional background color to apply to
string
.Return Value
A version of
string
with the appropriate color formatting applied.