I am working on creating a web service (using C #) and this web service will use the MS SQL Server database. Now I am trying to create (exception logging log) for this web service. I just want to save every exception in the web service for future use (error tracing).
Where is the best place to keep these exceptions? Is it a good idea to store it in a database? What if the exception is related to the database itself?
You have 3 options:
- , , . AppName\YYYY\MM\DD\yourfile.log, , ( ). Threading . . , , , .
- , . . , , , ? - .. , .
- 1 2 . , , Windows ( , Windows) . , , . , , , , .
1 2. , , . , , . , , , , , .
, , , . DB, . , . , . , , - .
. db, .. .
, , db? , . . ( ), , .
Source: https://habr.com/ru/post/1745823/More articles:Производительность С# при ошибках - performanceA WordPress form creation plugin that allows you to: Step 1> Step 2> Step 3> Submit - wordpressHow to get the computer name (host name in the web application)? - c #Sending a file in API C # - c #Publication status via Facebook graph api - phpIs there a way to move through the for loop by value, and not one at a time in VBScript? - vbscriptПроблемы с Z-индексом с элементами IE6 и html - jqueryIntersection of a cone segment 2D - c #Where does the AccountController in Asp.Net MVC 2 store its data? - c #Любой, кто использует ASP.NET MembershipProvider с Nhibernate? - c#All Articles