Logging
Application Block Hands-On Lab for Enterprise Library 企业库的日志应用程序块动手实验

This walkthrough should act as your guide for
learning about the Enterprise Library Logging Application Block and will allow
you to practice employing its capabilities in various application
contexts.这个预先安排好的过程将充当你学习企业库日志应用程序块的向导,并让你练习在各种应用程序环境中使用它的能力。
After completing this lab, you will be able to do
the following: 在完成这个实验之后,你将学会做下面的事情:
- You will be able to use the Enterprise Library
Logging Application Block to implement logging in an application.
你将会使用企业库日志应用程序块在程序中实现日志记录。
- You will be able to use the Logging
Application Block to log messages asynchronously. 你将会使用日志应用程序块来异步的记录消息。
- You will be able to dynamically reconfigure
logging while the application is running. 你可以在程序运行时动态地重新配置日志。
- You will be able to create and use custom
trace listeners. 你将会创建和使用自定义的trace监听器。
- You will be able to create and use custom log
formatters. 你将会创建和使用自定义日志格式器。

This hands-on lab includes the following five
labs: 这个动手实验包含下列五个实验:
- Lab 1:
Add Logging to an Application实验1:添加日志到程序中
- Lab
2: Create and Use an Asynchronous Trace
Listener实验2:创建和使用异步Trace监听器
- Lab
3: Reconfigure Logging at Run Time实验3:在运行中重新配置日志
- Lab
4: Create and Use a Custom Trace
Listener实验4:创建和使用自定义的Trace监听器
- Lab
5: Create and Use a Custom Log
Formatter实验5:创建和使用自定义的日志格式器
The estimated completion for this lab is
45 minutes. 估计完成这个实验需要45分钟。
Authors
作者
These Hands-On Labs were produced by the
following individuals: 这些动手实验是有下面的人提供的:
- Program Management: Grigori Melnik and Madalyn
Parker (Microsoft Corporation)
- Development/Testing: Fernando Simonazzi
(Clarius Consulting), Chris Tavares, Grigori Melnik,
Mike Sampson and Cim Ryan (Microsoft
Corporation), Erik Renaud (nVentive Inc.), Mariano Grande (Digit Factory), and
Naveen Pitipornvivat (Adecco)
- Documentation: Fernando Simonazzi (Clarius
Consulting), Grigori Melnik, Alex Homer, Nelly Delgado and RoAnn Corbisier
(Microsoft Corporation)
译者
本文是由Arnu(Arnu@live.cn)翻译的。文中任何问题欢迎指正。
【翻译】【中英对照】【企业库6】动手实验 Hands-On Lab 日志应用程序块索引页
原文:http://www.cnblogs.com/Arnu/p/LoggingBlockIndex.html