Category Archive for: Tracing Requests

I use the custom tracing and logging approaches when I need to find a specific problem, but I use a tool called Glimpse when I don’t know where to start looking or when I need to look at the overall behavior of the application. Glimpse is an open source diagnostics package that builds on the ASP.NET logging…

ASP.NET includes a little used but incredibly helpful request tracing feature that provides information about the requests that an application receives. The tracing feature pre-dates the MVC framework. and there are some features that don’t work outside of Web Forms applications, but there is still enough value in performing tracing that it should be a key part of…

The ASP.NET request life cycle includes two events that are specifically related to the logging of requests: LogRequest and PostLogRequest. The first event is a signal to any logging functionality you have added to the application that the request has been processed and the content is about to be sent to the client, This is the perfect…

The simplest way to get insights into an application is to create a log of each request. In this section I explain how the ASP.NET request life cycle accommodates logging and show you how to capture logging information. Table 8-2 puts logging requests into context. Table 8-2. Putting Request Logging in Context

For this chapter I need a simple web application to inspect and monitor, so I am going to continue to use the Mobile project I created in Chapter 7 when I demonstrated how to detect and respond to device capabilities. No changes to the project are required.

There will come a point where your web application doesn’t behave the way you expect. Some problems manifest themselves in an obvious way-such as unexpected HTML content-and you need to figure out what goes wrong. Other problems are more complex and insubstantial, and you may have to dig deep into the application just to figure out what’s happening,…