I'd like all of my .Net applications to be able to log unhandled exceptions via the internet when a connection is available. Are there any libraries people use for this purpose (preferably free/open source)?
views:
76answers:
3
+3
A:
Loads. log4net may have something, and if not, you could easily write a log4net plugin that called a WCF or asmx web service that would record the log somewhere.
Neil Barnwell
2009-05-25 15:03:49
+5
A:
Log4Net will do that, specifically through the use of Appenders like the SmtpAppender.
Yishai
2009-05-25 15:03:51
Someone has written a log4net Web Service appender on CodeProject- http://www.codeproject.com/KB/cs/Log4NetWebServiceAppender.aspx
RichardOD
2009-05-25 19:21:42
+1
A:
I believe that ELMAH can do whatever you're looking for.
http://code.google.com/p/elmah/ http://www.hanselman.com/blog/ELMAHErrorLoggingModulesAndHandlersForASPNETAndMVCToo.aspx
Nathan Koop
2009-05-25 15:04:09
Can ELMAH be used with .Net client apps too? Their page only discusses ASP.Net.
Luke
2009-05-25 15:10:30
I'm not an expert on ELMAH (defer's to someone who is), but I believe that it's only ASP.NET (or MVC, etc...)
Nathan Koop
2009-05-25 15:30:21