Trace Listeners Component for .NET
The standard .NET diagnostic log files can become unwieldy. Wouldn’t it be nice if log files
could be limited to manageable sizes and automatically cycled?
The Trace Listeners component for .NET is a fully featured, easy to use, component that includes
cyclic file, HTTP, SMTP and MSMQ trace listeners that extend the System.Diagnostics.TraceListener
class. The trace listeners are fully configurable from the application’s XML configuration file.
The component offers .NET developers sophisticated tracing options for their applications.
Cyclic File Trace Listener
- Extends System.Diagnostics.TraceListener
- Fully configurable cyclic log file trace listener
- Specify the location, base name and maximum size of the trace files
- Automatically include a timestamp with your trace entries
- The process and thread identifier’s may also be automatically included
- Include the caller’s class and method name with no user code required
Cyclic Log File
- Writes to a file (e.g. 00000.log) until it reaches a configurable size and then writes to the next file in the sequence (e.g. 00001.log)
- Cyclic log file names are of the form: <directoryName>\<filePrefix><sequenceNumber><fileSuffix>
Cyclic Log File Format
-
In the following example trace entry, only the last field was written by the calling application. The trace listener automatically included all other fields.
07/04/2003 9:24:03 AM, 14220/12972, TestTraceListeners.MainForm.buttonTrace_Click, This is test #1.
Other Trace Listeners
- HTTP trace listener posts trace entries to a configured URL
- SMTP trace listener sends trace entries to a configured email address
- MSMQ trace listener puts trace entries on a configured queue
What's Included
- Fully featured Trace Listeners component for .NET 2.0 and .NET 3.5
- Example projects with complete source code
- Comprehensive documentation
- 12 months free standard support including minor release upgrades
- Royalty free runtime
- Complete source code available for purchase