turn off colored logging if output is redirected to file