I know it is useful to add the screenshot to the test log when object comparsion error occurs. Will it affect the performance running scripts?
Re: Event log
This code will definitely need more time to be execute than just posting an error. As for the performance, you shouldn't notice a significant slowdown unless a lot of errors are posted to the log in a row.