跟踪Tracing

Windows Communication Foundation (WCF)为错误监视和分析提供应用程序检测和诊断数据。Windows Communication Foundation (WCF) provides application instrumentation and diagnostic data for fault monitoring and analysis. 您可以使用跟踪代替调试器来了解应用程序的运行行为,或者为什么出错。You can use tracing instead of a debugger to understand how an application is behaving, or why it faults. 您还可以在组件之间关联错误和处理,以提供端对端体验。You can also correlate faults and processing across components to provide an end-to-end experience.

WCF 输出用于诊断跟踪的以下数据:WCF outputs the following data for diagnostic tracing:

  • 应用程序所有组件之间进程里程碑的跟踪,如操作调用、代码异常、警告及其他重大处理事件。Traces for process milestones across all components of the applications, such as operation calls, code exceptions, warnings and other significant processing events."

  • 跟踪功能出现故障时发生的 Windows 错误事件。Windows error events when the tracing feature malfunctions.

本节内容In This Section

配置跟踪Configuring Tracing

本主题说明如何在不同级别配置跟踪以适应特定的需要。This topic describes how you can configure tracing at different levels to suit your specific need.

端到端跟踪End-to-End Tracing

本节说明如何使用端对端关联的活动跟踪和传播以帮助调试。This section describes how you can use Activity Tracing and Propagation for end-to-end correlation to assist debugging.

使用跟踪来排除应用程序故障Using Tracing to Troubleshoot Your Application

本节说明如何使用跟踪来调试应用程序。This section describes how you can use tracing to debug your application.

有关跟踪的安全注意事项和有用提示Security Concerns and Useful Tips for Tracing

本主题说明防止敏感信息公开的方法以及使用 WebHost 时的有用提示。This topic describes how you can protect sensitive information from being exposed, as well as useful tips when using WebHost.

跟踪参考Traces Reference

本主题列出了 WCF 生成的所有跟踪。This topic lists all the traces generated by WCF.

另请参阅See also