cancel
Showing results for 
Search instead for 
Did you mean: 

OnLogEvent and log types

Highlighted
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
Highlighted
Contributor

Can you elaborate please?



Thankyou

Syed

Syed Ahmed Safvan

Highlighted
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

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
Occasional Contributor

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:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!


Challenge Status

Get properties of a web page element

See replies!

Compare images using the Region Checkpoint

See replies!

Compare HTML table with Excel file and correct data in Excel file

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!
Top Kudoed Authors