Implementing Error Logging

Overview

It is important to know what is going on with your site in development and production. By implementing proper error logging, you can quickly track down errors, and provide your team members with enhanced error information. With the new ASP Error object you can create a simple and effective logging system.

ASP Error Object

Did I tell you I love the new ASP Error object? It finally enables developers to control page execution. This object is used to retrieve details of the last error that occurred within an ASP page. Combine that with the ability to create custom error pages, and you have a pretty powerful tool within the development shack.

The error object consists of nine properties; however, I will only mention the properties used within the demo.

ASPDescription - returns a description for all non-ASP errors.
Category - the evil being, external object, or script that caused the error.
Column - column position of the rogue character.
Description - description of ASP error.
File - the ASP file that caused the error.
Line - the line number of the evil code.
Source - the actual evil code that caused the error.

You might also like...

Comments

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“You can stand on the shoulders of giants OR a big enough pile of dwarfs, works either way.”