cancel
Showing results for 
Search instead for 
Did you mean: 

OnLogEvent and log types

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
Contributor

RE: OnLogEvent and log types

Can you elaborate please?



Thankyou

Syed

Syed Ahmed Safvan

Staff

RE: OnLogEvent and log types

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.↓↓↓↓↓
Occasional Contributor

RE: OnLogEvent and log types

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

Thanks!

New Here?
Join us and watch the welcome video:
Watch the New Interview
APITestingMistake#2
Top Kudoed Authors