6. The Logging and Instrumentation Application Block

THE LAST CHAPTER touched on the fact that it is very common for an application to have to log information. For example, it isn’t unusual for an application to log exceptions that occur. I mentioned that, while handling exceptions is the responsibility of the Exception Handling Application Block, logging the exceptions is the responsibility of the Logging and Instrumentation Application Block. Unfortunately, like caching, logging is often an afterthought to the design of the application and only gets added to the application after it has already been deployed and issues start to arise. When this occurs, logging is often “slammed” into the application in a haphazard manner.

The Logging and Instrumentation ...

Get Effective Use of Microsoft Enterprise Library: Building Blocks for Creating Enterprise Applications and Services now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.