> For the complete documentation index, see [llms.txt](https://docs.iceteagroup.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.iceteagroup.com/general/framework/tracing/default-listeners.md).

# Default Listeners

There are a number of default listeners already provided with the basic .NET Framework that can be used to log the diagnostics traces coming from the PPJ Framework and the application.

You can also write your own listener by deriving from System.Diagnostics.TraceListener. A custom listener would allow you to capture only specific events and process the information however you like. Some examples can be storing the trace logs in a database, send emails, log them on a remote system and more.

The most useful default listeners provided in the basic .NET Framework are listed in the following table:

<table><thead><tr><th width="276">Listener</th><th>Description</th></tr></thead><tbody><tr><td>DefaultTraceListener</td><td>Logs traces to the output window in VisualStudio.</td></tr><tr><td>TextWriterTraceListener</td><td>Logs traces to a text file.</td></tr><tr><td>ConsoleTraceListener</td><td>Logs traces to the console window.</td></tr><tr><td>DelimitedListTraceListener</td><td>Logs traces to a delimited text file. The default delimiter is ",".</td></tr><tr><td>XmlWriterTraceListener</td><td>Logs traces to a XML formatted text file.</td></tr><tr><td>EventLogTraceListener</td><td>Logs traces to Windows' event log.</td></tr><tr><td>FormViewerTraceListener</td><td>Logs traces to a form viewer. This listener is added as part of the new PPJ.Utility namespace.</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.iceteagroup.com/general/framework/tracing/default-listeners.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
