Ask a Question

OnLogEvent and log types

jeans
Occasional Contributor

OnLogEvent and log types

Is it possible to know the log type from inside OnLogEvent handler?

I could use the OnLogError, OnLogWarning etc., but it seems counterproductive - in particular much harder to maintain.
3 REPLIES 3
syedsafvan
Contributor

Can you elaborate please?



Thankyou

Syed

Syed Ahmed Safvan

YMinaev
Staff

Hi Jean,



The OnLogEvent event occurs when you post a message of the 'event' type to the log. For other message types, you need to use appropriate events (OnLogMessage for messages, OnLogError for errors, etc.).



------
Yuri
TestComplete Customer Care Engineer

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
jeans
Occasional Contributor

Right, I was misled by the name while looking for a generic OnLog event handler.

Thanks!

cancel
Showing results for 
Search instead for 
Did you mean: