aplicaciones
Top achievements
Rank 1
aplicaciones
asked on 04 Oct 2017, 10:11 AM
Hello,
Firstly, I hope I don't duplicate any already made question or thread. I have done some search and I couldn't find what I was looking for.
Telerik Frameworks trough BaseWebAiiTest.Log allows me to write a log entry in the Event log via LogType.EventLog which is great :D
What I am wondering if there is some built in way to in addition to that set the log level. Right now, I am visualizing all the entries as "information" level whereas some of them should be errors.
In some other projects, using log4net as logging framework I was able to set different type of log levels in the windows event log.
Is there any built way on Telerik framework to accomplish this?
Regards,
5 Answers, 1 is accepted
0
Hello,
Thank you for reaching us out.
As far as I understand you would like to have different log identification for the entries you insert. Thus the Log.Writeline method could be extended to change its LogType. Please double check here.
Please let me know if you would need any further assistance. Thanks in advance!
Regards,
Elena Tsvetkova
Progress Telerik
Thank you for reaching us out.
As far as I understand you would like to have different log identification for the entries you insert. Thus the Log.Writeline method could be extended to change its LogType. Please double check here.
Please let me know if you would need any further assistance. Thanks in advance!
Regards,
Elena Tsvetkova
Progress Telerik
0
aplicaciones
Top achievements
Rank 1
answered on 09 Oct 2017, 08:23 AM
I believe we are speaking about different things.
I am already using Log.Writeline with the LogType set to EventLog. That's great because allows me to create logs in the Event Viewer.
What I am asking is if there is some built in way from Telerik framework to set the log level entry on the Event Viewer. I have attached you an image showing what I have done using log4net in other projects with regards to the Event Viewer.
I am already using Log.Writeline with the LogType set to EventLog. That's great because allows me to create logs in the Event Viewer.
What I am asking is if there is some built in way from Telerik framework to set the log level entry on the Event Viewer. I have attached you an image showing what I have done using log4net in other projects with regards to the Event Viewer.
0
Hi,
Thank you for the clarification. Though I have to admit that there is no built-in mechanism to adjust that entry in the Event viewer. The good news is that you could implement any C# code within the Test Studio project. I searched the web for possible solution of your listed scenario and here you could find further recommendations.
Thanks again for your cooperation!
Regards,
Elena Tsvetkova
Progress Telerik
Thank you for the clarification. Though I have to admit that there is no built-in mechanism to adjust that entry in the Event viewer. The good news is that you could implement any C# code within the Test Studio project. I searched the web for possible solution of your listed scenario and here you could find further recommendations.
Thanks again for your cooperation!
Regards,
Elena Tsvetkova
Progress Telerik
0
aplicaciones
Top achievements
Rank 1
answered on 11 Oct 2017, 04:09 PM
Thank you so much for your suggestions. It's quite similar to the way I have solved it in other projects.
Many thanks for your time,
Many thanks for your time,
0
Hi,
Thanks for getting back to me. I am glad to hear the responses were helpful to you!
Regards,
Elena Tsvetkova
Progress Telerik
Thanks for getting back to me. I am glad to hear the responses were helpful to you!
Regards,
Elena Tsvetkova
Progress Telerik