Be the first to write a review
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
Kevin Koch
Kevin Koch is a senior software engineer with over 8 years experience designing and architecting primarily web based applications. Fresh out of college during the nineties he co-founded Task Solutions and developed several projects with the then popular classic ASP.
During the Dot Com boom Kevin left his position as president and joined a new venture to build an enterprise insurance claim system build upon J2EE technology. After the Dot Com crash Kevin schooled himself to become an expert with .NET technology and is currently freelancing his ASP.NET skills to build enterprise n-tier frameworks using advanced OO methodologies.