Draft: Reorganize makefiles (redux), shell scripts, and Node.js scripts with consistency throughout

What does this MR do and why?

For: #325 (closed), let's make output from Makefiles, shell scripts, and Node.js scripts look like output from Go. That is, same colors for the different levels and with timestamps.

In this MR, we standardize on basic green, yellow, and red (expressed as ANSI 8-bit rather than 4-bit color) for info, warn, and error debug levels. This makes the color look much more integrated with other tooling that also uses standard colors and should reflect color customizations that terminal programs allow for these basic colors. For example, in Terminal: https://support.apple.com/en-au/guide/terminal/trmltxt/mac on macOS.

This MR is a repeat of !598 (merged) (with more), which we want to go ahead with per: !598 (comment 2486773945).

How to set up and validate locally

  1. Configure a local GitLab Docs environment.
  2. Run make test, make setup, make view, make check-elastic-key-permissions, make check-codeblocks-language-support, and make check-pages-not-in-nav and observe output.
  3. Check out this branch.
  4. Run make test, make setup, make view, make check-elastic-key-permissions, make check-codeblocks-language-support, and make check-pages-not-in-nav and observe output. There is greater consistency in output.
  5. (Optional). Customize the color settings in your terminal for "green", "yellow", and "red". The output of these Make targets should match the custom colors.

Merge request acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Evan Read

Merge request reports

Loading