private static final boolean shouldUseColor() {
    try {
      final String osName = System.getProperty("os.name");
      return getEnv("FORCE_COLOR") && !getEnv("NO_COLOR") &&
        !osName.contains("Windows");
    } catch (Exception e) {
      return false;
    }
  }
Whether we think we're attached to a human's TTY that wants pretty colors,
otherwise this is a log file someone may be hunting/analyzing later so
ASCII-escape codes for color will just be annoying.
portability-api-launcher/src/main/java/org/datatransferproject/launcher/monitor/ConsoleMonitor.java