From 0f1e282e3dd56eb2baeb5eb14d0b73903e983a43 Mon Sep 17 00:00:00 2001 From: abhiramch018 Date: Tue, 25 Nov 2025 17:31:07 +0530 Subject: [PATCH] docs: add DefaultTraceListener entry to trace listeners table ### Summary Added the missing `DefaultTraceListener` entry to the trace listeners table in the `.NET Framework` configuration documentation. ### Why The table listing available trace listener classes did not include `DefaultTraceListener`, which caused confusion for users trying to configure it using `app.config`. This listener is automatically included by default in the `Trace.Listeners` collection, but users may want to reference it explicitly in configuration files. ### Change - Added a new row for `DefaultTraceListener` to the trace listener table in `add-element-for-listeners-for-trace.md`. - Clarified its purpose and default behavior in debugging and tracing scenarios. ### Related Issue Fixes #48559 --- .../trace-debug/add-element-for-listeners-for-trace.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/framework/configure-apps/file-schema/trace-debug/add-element-for-listeners-for-trace.md b/docs/framework/configure-apps/file-schema/trace-debug/add-element-for-listeners-for-trace.md index cb57f55251288..7dacfdd4af621 100644 --- a/docs/framework/configure-apps/file-schema/trace-debug/add-element-for-listeners-for-trace.md +++ b/docs/framework/configure-apps/file-schema/trace-debug/add-element-for-listeners-for-trace.md @@ -78,7 +78,9 @@ Adds a listener to the **Listeners** collection. ||The name of the name of an existing event log source.| ||The name of the file that the writes to.| ||The name of the file that the writes to.| -||The name of the file that the writes to.| +||The name of the file that the writes to.| +|xref:System.Diagnostics.DefaultTraceListener?displayProperty=nameWithType|The default trace listener that outputs messages to the Visual Studio Output window or debugger. This listener is automatically included in the `Trace.Listeners` collection unless explicitly removed in the configuration.| + ## Example