Thursday, February 26, 2009

Logging Application Block

The Application Blocks in Enterprise Library are designed to be as agnostic as possible to the application architecture.When you using tease Application blocks it provides,
  • Improved Productivity: Each of the Application Blocks provides several interfaces meant to satisfy common application concerns.
  • Configuration Driven Design: Many technical decisions about the application behavior can be delayed until configuration time of the application. For instance, if an application does not properly handle an exception, instead of adding another exception handler to the code, an administrator can configure an additional exception handling policy.
  • Improved Testability: Many application areas can be reconfigured to improve testing of the application in isolation.

This application block provides a consistent interface for logging information to any destination. Your application code does not specify the destination for the information. Configuration settings determine whether the application block writes the logging information and the location for that information. This means that operators as well as developers can modify logging behavior without changing application code.

The Logging Application Block may be used equally in a web,smart client or service-oriented application.

The Logging Application Block helps with application development in a number of ways:

  • It helps maintain consistent logging practices, both within an application and across the enterprise.
  • It eases the learning curve for developers by using a consistent architectural model.
  • It provides implementations that you can use to solve common application logging tasks.
  • It is extensible, supporting custom implementations of components that format and write event information.

Patterns and Practices Guidance

David Hayden [MVP C#] provides Patterns and Practices Guidance videos in logging Application Block.You can refer his site and videos
Vew Vedio