Building a Logging Framework in ASP.NET 1.x – Part 2

Welcome to the second and final part of this tutorial regarding building a custom logging framework for ASP.NET applications. The purpose of this 2 part tutorial is to create an easy, customized and scalable way to log messages in your application, specifically exception messages and debugging messages.
During Building a Logging Framework in ASP.NET 1.x Part 1 we implemented the foundation structure of the logging framework. We created a singleton class which was able to initialize itself and read in several customization parameters required for logging. The customization aspect of the framework allows for real-time changes to logging parameters without recompiling your application.
In part 2 of this tutorial we will expand on our foundation and implement the code which will actually perform the logging functionality itself, writing the messages to the file system in the log file. We will also implement 3 different example logging shortcut methods which can log 3 different types of information.
Once the logging framework is complete we will implement some simple code-behind logic to test our logging methods and run through the 3 different scenarios for logging information using the debugger.
Note: Visual Studio .NET 2002/2003 running ASP.NET 1.x is required to implement this tutorial. Both C# and VB.NET code samples will be provided







