Event logging

Discussion in 'ASP.NET / ASP.NET Core' started by jmurph, Dec 28, 2005.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I want to record error events in my asp.net pages. I tried using the application event log and was told it is not allowed on discountasp servers.

    I have tried writing trace events. When I view them with trace.axd, only 10 traces show up. My web.config did have "requestlimit=10". I removed this option, but still only get 10 trace entries.

    My question is: What do you all recommend for recording error events? I want to be able to see where errors are happening so I canfix them. How can I find them?

    Thanks,
    Joe
     
  2. http://joel.net/code/global_errors.aspx


    You can use this library I create. I have it setup to email me the error and info. But you can modify it to shove the data into a database or textfile if you want.

    You also set it up in your global.asax file, so it will capture any error on any page without modifying those pages. Let me know if this is what you are looking for.


    Joel Thoms

    DiscountASP.NET
    http://www.DiscountASP.NET
     
  3. hello jmurph,

    I trap most of the possible errors with try-catch-finally code and then write the errors in a table. After every 10 errors I send myself a mail with a list of errors that occurred. If you google on for instance 'error logging asp.net', I'm sure you will find some good example code for this purpose.

    Success !

    --
    Steurm
    www.steurm.net/steurm
    [​IMG]
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page