You will often want to log events or errors as they occur in your .Net application.

To do this, you could take advantage of one of the many popular logging frameworks available, or you could design and develop your own logging framework.
In this article we’ll see how we can design and develop our own logging framework with ease, and walk through the steps to build a simple logger in C#.First off, you will need to understand the log targets—the various places where the data could be logged. Let’s assume that we will log the data to flat files, a database, and the event log.

The following enumeration defines the log targets we would use in this simple framework.To read this article in full or to leave a comment, please click here

Leave a Reply