Write on Event log with level type

6 posts, 0 answers
  1. aplicaciones
    aplicaciones avatar
    13 posts
    Member since:
    Apr 2017

    Posted 04 Oct Link to this post

    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,

  2. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    604 posts

    Posted 09 Oct Link to this post

    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
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  3. aplicaciones
    aplicaciones avatar
    13 posts
    Member since:
    Apr 2017

    Posted 09 Oct in reply to Elena Tsvetkova Link to this post

    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.
  4. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    604 posts

    Posted 11 Oct Link to this post

    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
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  5. aplicaciones
    aplicaciones avatar
    13 posts
    Member since:
    Apr 2017

    Posted 11 Oct in reply to Elena Tsvetkova Link to this post

    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,
  6. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    604 posts

    Posted 12 Oct Link to this post

    Hi,

    Thanks for getting back to me. I am glad to hear the responses were helpful to you! 

    Regards,
    Elena Tsvetkova
    Progress Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top