ComponentSpace Trace Listeners Class Library Reference

MsmqTraceListener Class

The MsmqTraceListener is a trace listener that writes messages to a queue.

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

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

[Visual Basic]
Public Class MsmqTraceListener
    Inherits TraceListener
[C#]
public class MsmqTraceListener : 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="MsmqTraceListener"
          type="ComponentSpace.TraceListeners.MsmqTraceListener,ComponentSpace.TraceListeners"
          initializeData=".\private$\trace"/>
      </listeners>
    </trace>
  </system.diagnostics>
</configuration>

Requirements

Namespace: ComponentSpace.TraceListeners

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

See Also

MsmqTraceListener Members | ComponentSpace.TraceListeners Namespace