Where does a beginner start by logging errors in asp.net c #?

I am new to teaching myself asp.net in C # through a trial version and find out about errors, unfortunately this means a lot of errors!

I now have a page with user errors, which is basically 404, so site visitors don’t get this ugly .NET error message, but I would like to see what is happening not how people use the site.

so I am looking to create or study from a fairly simple C # error log that will send the same information as in the browser when a .NET error occurs, send this to a TXT file and send me an error the same time great

I don't know where to start, can someone give me some pointers? the open source class that does this already, with which I could connect and play, will work too. otherwise, some links or recommendations on where to start reading will also be good.

I have a mental box for understanding info-dump msdn pages, but I hope to find some articles about real people talking about implementing the same self or something like that

Please note that I do not want to use any extensive or complex third-party service for this, I hope to learn from the process of implementing a compressed individual

+3
source share
2 answers

, log4net ELMAH ASP.NET. Scott Hanselman ELMAH - .

+2

Source: https://habr.com/ru/post/1746687/


All Articles