Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Trace and debug settings specify trace listeners that collect, store, and route messages, and the level where a trace switch is set.
The following table describes the function of each trace and debug settings element.
| Element | Description |
|---|---|
| <add> | Adds a listener to the Listeners collection for a trace source. |
| <add> | Adds a listener to the Listeners collection. |
| <add> | Adds a listener to the sharedListeners collection. |
| <add> | Specifies the level where a trace switch is set. |
| <assert> | Specifies whether to display a message box when you call the Debug.Assert method; also specifies the name of the file to write messages to. |
| <clear> | Clears the Listeners collection for a trace source. |
| <clear> | Clears the Listeners collection for trace. |
| <filter> | Adds a filter to a listener in the Listeners collection for a trace source. |
| <filter> | Adds a filter to a listener in the Listeners collection for trace. |
| <filter> | Adds a filter to a listener in the sharedListeners collection. |
| <listeners> | Specifies listeners for the Listeners collection for a trace source. |
| <listeners> | Specifies listeners for the Listeners collection for trace. |
| <performanceCounters> | Specifies the size of the global memory shared by performance counters. |
| <remove> | Removes a listener from the Listeners collection for trace. |
| <remove> | Removes a listener from the Listeners collection for a trace source. |
| <sharedListeners> | Contains listeners that any source or trace element can reference. |
| <sources> | Contains trace sources that initiate tracing messages. |
| <source> | Specifies a trace source that initiates tracing messages. |
| <switches> | Contains trace switches and the level where the trace switches are set. |
| <system.diagnostics> | Specifies trace listeners that collect, store, and route messages and the level where a trace switch is set. |
| <trace> | Contains listeners that collect, store, and route tracing messages. |
See also
Cộng tác với chúng tôi trên GitHub
Bạn có thể tìm thấy nguồn cho nội dung này trên GitHub, nơi bạn cũng có thể tạo và xem lại các vấn đề và yêu cầu kéo. Để biết thêm thông tin, hãy xem hướng dẫn dành cho người đóng góp của chúng tôi.