Configure logger color for console output

(jérémie GUIDOUX) #1


I try to have an output for my logger at error level in RED for the console output.
I thought that just write this:

logger.error(“la variable n’existe pas”)
will be enougth. But not.
I try to add this with no succes
System.setProperty(‘org.gradle.color.error’, ‘RED’)

I am on windows and use Babun.
To have color on the output, I use gradle --console=rich

Do you have an idea how to configure the gradle logger to have the output of logger.error in red ?