Function paris::formatter::colorize_string
source · pub fn colorize_string<S>(input: S) -> String
Expand description
Finds all keys in the given input. Keys meaning
whatever the logger uses. Something that looks like <key>
.
And replaces all those keys with their color, style
or icon equivalent.
This is a wrapper around the format_string
function, it always passes
true for the second parameter. If you want to have the ability to
both colorize and plain remove the tags out of the strings, you should
that function instead.