. NET exposes an elegant diagnostics model that can be used by applications. It is a bit confusing to start with. There are a few listeners that exist in the Diagnostics namespace. Some of them are 1. TextWriterTraceListener 2. DefaultTraceListener 3.