Quantcast
Channel: Emil's Lost & Found Archive » logging
Browsing all 3 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

log4net configuration examples

Almost every application requires, or at least benefits greatly from, some kind of logging of events and errors. I suspect all of us have written custom code for logging to text files, database tables,...

View Article



Image may be NSFW.
Clik here to view.

Detecting unhandled errors in ASP.Net applications

For my own reference, here’s how to detect unhandled exceptions in Global.asax: protected void Application_Error(object sender, EventArgs e) { // Log error Exception ex =...

View Article

Connection strings used for logging should not enlist in transactions

I was just reminded of an old truth when it comes to logging errors in a database: Do not enlist the error logging operation in the current transaction, if there is one! The default is to do just that,...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images