geodata.logging.colorize#
- geodata.logging.colorize(string: str, color: str, bold: bool = False, highlight: bool = False) str#
Returns string surrounded by appropriate terminal colour codes to print colorized text.
- Parameters:
string – The message to colourise
color – Literal values are gray, red, green, yellow, blue, magenta, cyan, white, crimson
bold – If to bold the string
highlight – If to highlight the string
- Returns:
Colourised string