Integrating Ranorex with logging tools like log4net

Ask general questions here.
SourishHalder
Posts: 5
Joined: Thu Jun 20, 2013 5:05 am

Integrating Ranorex with logging tools like log4net

Post by SourishHalder » Wed Oct 30, 2013 11:13 am

Hello ,

My development team uses Apache Logging Log4Net for custom logging.
I am using Ranorex 4.0.5 for Test Automation of the same. Is there a possibility of integration Log4Net with my Ranorex solution and use it. Any help or information regarding the same would be appreciated.

Regards,
Sourish

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Integrating Ranorex with logging tools like log4net

Post by Support Team » Wed Nov 06, 2013 1:18 pm

Hello Sourish,

It depends on how you want to use Log4Net.
If you want that the Ranorex.Report (methods, like Report.Info("...")) should directly log the messages to Log4Net, you need to implement a custom logger (need to implement the IReportLogger interface) and if not, you can use Log4Net as you would use it in other .Net applications, there shouldn't be differences in use.

Regards,
Markus
.
Image