# 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
