Acerca de ComponentSpace Trace Listeners .NET Class Library

Los archivos de seguimiento de diagnóstico estándar de .NET pueden llegar a ser difíciles de manejar.

Trace Listeners .NET Class Library includes a cyclic file trace listener that extends the System.Diagnostics.TraceListener class. The trace listener is fully configurable from your application’s XML configuration file. Also included are HTTP, SMTP and MSMQ trace listeners. Written in 100% managed C# code, the class library offers .NET developers sophisticated tracing options for their applications.

The cyclic file trace listener 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). When you configure the cyclic file trace listener you may specify the folder location for the trace files, the trace file prefix, suffix and starting sequence number. Trace files are written to the specified directory and are named:

\.

You may also specify the maximum file size as well as the field separator for trace entries, and whether timestamps, process and thread identifiers, and the callers class and method name are automatically included with each trace entry. Of course, you may also configure all these properties at runtime from within your code if you choose. 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/2002 9:24:03 AM, 14220/12972, TestTraceListeners.MainForm.buttonTrace_Click, This is test #1.

The HTTP trace listener uploads trace entries to a configured URL. The SMTP trace listener sends trace entries to a configured email address. The MSMQ trace listener puts trace entries on a configured queue.

Main Features

  • Fully configurable cyclic 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 identifiers may also be automatically included
  • Include the callers class and method name with no user code required
  • Also HTTP, SMTP and MSMQ trace listeners
  • 100% managed code written in C#
  • Object oriented design specifically for the .NET framework
  • All error handling through .NET exceptions
  • Comprehensive Visual Studio .NET style documentation
  • VB.NET and C# example source code
  • Includes prompt free email support
  • Royalty free runtime
  • Source code available