AWS Thinkbox Discussion Forums

wish: color coded logs

Would be great if error / warning lines would get somehow color coded in the streaming & regular logs. So that errors could be drawn attention to

Best would be if we could control the color coding in the std out handlers somehow

We have this on the wish list already, it just hasn’t found it’s way into a roadmap yet. Each line in the log is already prefixed with INFO:, WARNING:, STDOUT:, or ERROR:, so that would be a good place to start. Interesting idea about adding control for this in the stdout handlers, but it might not be necessary considering that those four prefixes already exist:

INFO: anything logged with the LogInfo function.
WARNING: anything logged with the LogWarning function.
STDOUT: any stdout from the rendering application.
ERROR: the message passed to the FailRender function.

Cheers,
Ryan

Yeah that sounds perfect actually!

Tangentially related to this, it might be nice to have a generic Log function that didn’t do any line prefixing.

ClientUtils.LogText() should already do that.

Cheers,
Ryan

Oh right… nevermind, nothing to see here.

Privacy | Site terms | Cookie preferences