ComponentSpace Trace Listeners Class Library Reference

HttpTraceListener Class

The HttpTraceListener is a trace listener that uploads trace messages to a URL.

For a list of all members of this type, see HttpTraceListener Members.

System.Object
   System.MarshalByRefObject
      System.Diagnostics.TraceListener
         ComponentSpace.TraceListeners.HttpTraceListener

[Visual Basic]
Public Class HttpTraceListener
    Inherits TraceListener
[C#]
public class HttpTraceListener : TraceListener

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

The following is an example of configuring the trace listener using the application's XML configuration file.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.diagnostics>
    <trace autoflush="true" indentsize="4">
      <listeners>
        <add
          name="HttpTraceListener"
          type="ComponentSpace.TraceListeners.HttpTraceListener,ComponentSpace.TraceListeners"
          initializeData="http://www.tracereceiver.com"/>
      </listeners>
    </trace>
  </system.diagnostics>
</configuration>

Requirements

Namespace: ComponentSpace.TraceListeners

Assembly: ComponentSpace.TraceListeners (in ComponentSpace.TraceListeners.dll)

See Also

HttpTraceListener Members | ComponentSpace.TraceListeners Namespace