Manual:$wgColorErrors/de-formal

Details
If true, some error messages will be colorized when running scripts on the command line; this can aid picking important things out when debugging. Ignored when running on Windows or when output is redirected to a file.