Nlog is a .net logging framework that can be configured from a config file or from inside your code itself. below i will give a brief description of how to configure Nlog from code. The code
The basic structure of a T-sql transaction / rollback for MS-SQL
Elmah is a open source error logging module for .net projects. It is easily integrated with any web projects and provides a basic interface for viewing the captured exceptions.