I'm aware of the following:
data _NULL_;
put "This is BLACK";
put "NOTE: This is BLUE";
put "NOTE- This is BLUE and has no NOTE";
put "WARNING: This is GREEN";
put "WARNING- GREEN, no WARNING";
put "ERROR: This is RED";
put "ERROR- RED, no ERROR";
run;
But I was wondering if there's a way I can control the color of the resulting text in the log to be something different than the color of notes/errors/warnings/etc. In other words, I want to do this without changing the colors of other things the log prints.
I believe this was discussed over at communities.sas.com a while ago, and the conclusion was NO. You can't designate a color for specific user-generated text written to the log.
https://communities.sas.com/t5/SAS-Enterprise-Guide/Colorized-Text-in-the-EG-Log/td-p/251828
https://communities.sas.com/t5/SAS-Procedures/can-we-change-the-color-of-log-output/td-p/83991