best practices for logging in ASP.net MVC? -
What is the best way to enter ASP.net MVC? I mean any event, I am currently using NOLG but I know that there are so many possible ways to do this.
I do not think ASP.x is the best framework / instrument or standard method in MVC. Just do it in another framework. When I set up logging, I usually think of it as a resource available for the rest of the application, rather than tied to a particular category. This is normal, and actually entering standard examples is given when presenting oriented programming aspects. Depending on what you're actually trying to log in, ; Which pages are requested and error management coverage is a great way to log in. Non-MVC asp.net apps generally do something in the global form, as stated. In fact, if you use an action filter, which I would suggest, even then the global. ASX's application_ar events include some basic error handling; If something goes really crazy then it will depend a bit more than the action filter. Also, call your logging resource at that point where the stuff is interesting to you. DB files? Either works, and as long as it is explained in a good method or two, you can still switch to it later.
Comments
Post a Comment