09-13-2017 08:35 AM
Here is my code:
// Specifies new attributes for warning messages
var attrWarning = Log.CreateNewAttributes();
attrWarning.Bold = true;
attrWarning.FontColor = clRed;
Log.Warning("Warning message should be red", "", pmNormal, attrWarning );
The text in the log is black and bold
I am not sure why red color was not applied. Bold was applied correctly.
09-14-2017 05:49 AM
Worked fine for me.... the trick is this... if you have the warning line highlighted, it "selects" the line which gives it a different color scheme. However, if you click on a different line in the log so you can see the warning, it works fine. First screenshot below shows the warning line "selected" and it appears to be incorrect. Second screenshot shows the message line selected which then shows that the warning has the correct font color applied.