Hello Julia,
thank you for your reply.
I've seen also that I may try to use the LockEvents Method of the Log object to block one message and substitute it with my customized message. If I've well understood, the Log will not be added if everything is OK but will appear if the action fail, providing the required information. I need to test such solution, that will produce lighter Log results than the previous one.
About the improvement of the current behavior, my "wish" will to be able to custom the message for actions that insert a message in the log (like Click).
A possibility could be to have an overrided function with a parameter that contains information on the customized message like the text to be displayed, the additional information, the priority, should we take a picture ... in fact all information sent to the Message method of Log, but embedded in a single object that could be previously set.
in "pseudo code" the result for me could look like this:
MyPanel.Click(); // add the default message "The window was clicked with the left mouse button. " in the log
var logMessage = new logMessage("Click on my very special drawing panel");
logMessage.setPriority(low);
logMessage.takeAPicture(whenFail); //May be also never or always
// whatever additional parameter we want
MyPanel.Click(logMessage); // add the "Click on my very special drawing panel" message in the log with low priority.
Thank you for your interest in my remarks,
Best,
Christophe