c# - Where should I store error logs? -
I am creating a C # / asp.Net (FW 2.0) web application and I was thinking that Where the log entry should be stored in your error
I can write it on a file on the server, but I do not think it would be insulated from the idea of an database .
Other bizarre answer is on the database, but if I do not have any relation with the database, what should I do if the client receives a connection error in the database (because the server and database are the same Are not clearly on the machine)?
Your suggestions are appreciated. From
you edit: I'm talking about basic error logging here, please do not mention such things as a large frame of log 4 net.
There is a very valid scenario when there is a fallback mechanism. Logging in the window event logs is not always practical, because logging is not easy to analyze, as is with relational databases. But the event allows logs to be logged in the event when your database fails then the luxury option is not IMO.
One of the reasons for this scenario is that I have created a logging structure (I will not give a reference, I requested it). This supports a concept called 'Fallback Provider' which allows the logging in an optional logger in case of failure of the main logger to occur. When you write your logging system, you can accept such a concept.
Good luck.
Comments
Post a Comment