none
Debug and trace logging tools for windows application RRS feed

  • General discussion

  • Hi,

    I have developed a windows application for our company. The application is ready for release. Now, we need to include debug and trace logging for all our code and error logging when any runtime exceptions arise on customer's PC. We need our application to write regular trace logs to customer's PC and whenever a runtime error occurs on customer's PC, the application should send all required logs to our company's email address.

    I explored regarding trace logging tools for .Net and found a list of tools in the link http://www.dotnetlogging.com

    With all the tools and libraries mentioned in this link, we should write our own trace using the methods in these libraries. I came to know about a tool VBWatch which is used for VB6 applications. This tool automatically writes all trace code for all the methods while building the application. So, our exe will be compiled with all this trace code. We need not write the trace code on our own. Whenever a runtime exception occurs on customer's PC, this VB Watch's dll/ocx, compresses all the log files along with error log and sends an email to the given email id.

    So, we want to use a trace logging application similar to this VB Watch which automatically writes all the trace code. So that this reduces writing the trace on our own for all methods.

    Please suggest if there is any tool similar to VB Watch for a .Net windows application.

    Thanks in Advance!

    Wednesday, April 24, 2013 5:21 AM

All replies

  • Surya,

    Be aware Windows means in Microsoft Development in fact WPF also known with XAML. 

    This is the forum for the Windows Forms GUI and related. 

    Be aware that Visual Studio has a lot build in currently. 

    But then you are probably better of in this Common Language Runtime Internals and Architecture forum which is more dedicated to your question.

    http://social.msdn.microsoft.com/Forums/en-US/clr/threads

     


    Success
    Cor

    Wednesday, April 24, 2013 9:19 AM
  • Hi,

    I have developed a windows application for our company. The application is ready for release. Now, we need to include debug and trace logging for all our code and error logging when any runtime exceptions arise on customer's PC. We need our application to write regular trace logs to customer's PC and whenever a runtime error occurs on customer's PC, the application should send all required logs to our company's email address.

    I explored regarding trace logging tools for .Net and found a list of tools in the link http://www.dotnetlogging.com

    With all the tools and libraries mentioned in this link, we should write our own trace using the methods in these libraries. I came to know about a tool VBWatch which is used for VB6 applications. This tool automatically writes all trace code for all the methods while building the application. So, our exe will be compiled with all this trace code. We need not write the trace code on our own. Whenever a runtime exception occurs on customer's PC, this VB Watch's dll/ocx, compresses all the log files along with error log and sends an email to the given email id.

    So, we want to use a trace logging application similar to this VB Watch which automatically writes all the trace code. So that this reduces writing the trace on our own for all methods.

    Please suggest if there is any tool similar to VB Watch for a .Net windows application.

    Thanks in Advance!

    Surya Praveen

    Wednesday, April 24, 2013 9:45 AM
  • Hi Cor,

    Thanks for your suggestions! I have posted this question in the 'Common Language Runtime Internals and Architecture' forum


    Surya Praveen

    Wednesday, April 24, 2013 9:46 AM
  • Hi MigrationUser,

    Though it's too late, I think still we can do it. We have just about 7 windows forms in our application. We can schedule this as a separate task and work on tracing all the information and logging it.

    As you suggested, we have try-catch blocks for each and every methods and a global exception handler where we are displaying a customized window along with stack trace. Now we can modify this global handler to write error to log or send email using a tool like NLog which supports sending email when error occurs.

    But my actual question is, if there is any tool similar to VBWatch which writes debug/trace while building the application. We need not write a single line of code, if such tool is available for .Net.


    Surya Praveen

    Thursday, April 25, 2013 5:18 AM
  • Hi Surya,

    Here we discuss the development issues, I would like to keep this thread in comment type since you are looking for a tool.

    Thank you for your understanding and support.

    Best regards,


    Mike Feng
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, April 25, 2013 1:50 PM
    Moderator