Closed ric-evans closed 3 years ago
My feelings about colored logs are "meh." (I can change the log formatting to include a timestamp in the python logger too)
But I won't object to it if you want to use colored logs.
My feelings about colored logs are "meh." (I can change the log formatting to include a timestamp in the python logger too)
But I won't object to it if you want to use colored logs.
k8s logs won't forward the coloring unfortunately (yet?). But, the base formatting is nice, even though that can be done with just logging.basicConfig()
Ahhh coloring, takes me back to the days of crafting ANSI escape codes to make output pretty in dial-up modem terminal programs and MS-DOS.
This does make logs harder to use in plain text editors, but there are ways to filter ANSI codes so heck, why not? :smile:
note that coloredlogs
is aware of the terminal type and won't input ASNI codes into non-interactive terminals (unless you really, really tell it to)
Biggest bonus is that coloredlogs includes a timestamp which will make debugging easier