log colors

The flyctl logs command shows colors for the region and log type. My app also selectively adds colors to certain console.log statements (via npm pacakge ansis) and the colors work locally, but appear to be stripped out of the output of flyctl logs. Is there a way to retain the colors over the wire?

Add --color to the CMD in the Dockerfile, or set FORCE_COLOR=1 in the environment. See: ansis - npm

for some reason I was thinking that was unrelated here but you were absolutely right and that did the trick. Thank you!


I had the same problem, just a few weeks ago:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.