dsrepl status outputs quite a lot of health / monitoring information.
It could be useful to attract the attention of users by showing errors in red and warnings in orange for example.
See https://en.wikipedia.org/wiki/ANSI_escape_code#Colors for how to output colors in a terminal. We may have to disable color output for non unix systems (including windows).
We discussed a few ways to do it:
- add a --colors argument. Problem: you might forgot to use it by default. Maven implemented a --batch-mode argument so colors are the default, but it is a pain to remember adding this method when redirecting the output.
- detect if stdout outputs to console, or whether there is a redirection: