0

Does anyone know if it's possible to have syntax highlighting in Nomad stdout/stderr?

For example, running echo "ERROR" locally will return ERROR displayed in red.

Can I do something similar in Nomad? Maybe leverage Go Lang somehow?

Stacker
  • 137
  • 3
  • 12
  • `running echo "ERROR" locally will return ERROR displayed in red.` No, _your program_ will display it as red, which is a feature for exampe in mobaxterm. The text itself has no color. `syntax highlighting in Nomad stdout/stderr?` Stdout and stderr are streams of bytes. "Highlight" is a feature of what you are _viewing_ the output with. So what are you using to view the output with? I will guess, that `nomad alloc logs` in mobaxterm will make ERROR string render as red, which again, is a feature of the application _not_ the data itself. – KamilCuk Feb 16 '23 at 21:41

0 Answers0