I am using loguru module in python. And I want to control that the messages output to a log file have different colors for instance, if I set the new level is "colorInfo_blue", the default color for "INFO" is white.
logger.info("white")
logger.colorInfo_blue("blue")
I want these two message have the different color just in one log file.
I have done this:
But it did not work

I want to control the color when write the log file. How shoud I change the code.