This question already has an answer here:
Making a log4j console appender use different colors for different threads
2 answers
It's not possible to change colors of slf4j
logging, because there are no formatters. SLF4J is a middleware between your application and some logging facility, for example, Log4j or Logback.
You can change colors in Log4j output, as explained here.