Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where should you do regular logging in asp.net-mvc ? Should you use ELMAH?

I want to start logging when items get removed from my asp.net cache and i am trying to figure out where and how to do this.

i see that ELMAH is recommended for application wide exception handling logging system but can (and should) it also be used for regular logging instrumentation like the example above?

like image 509
leora Avatar asked Jul 11 '11 02:07

leora


1 Answers

I think that use you use both ELMAH and Log4Net (or NLog). Using both will get you the most flexibility. I wish I could go into extreme details right now, but I wanted to at least respond to you and let you know that using BOTH are the best solution from what I have experienced, and what I have read others have done. Please let me know if you need explanations etc..

like image 172
Tom Stickel Avatar answered Oct 14 '22 01:10

Tom Stickel