Show / Hide Table of Contents

Class Trace

The Trace class for writing traces.

Inheritance
System.Object
Trace
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Amqp
Assembly: Amqp.Net.dll
Syntax
public static class Trace

Fields

TraceLevel

Gets or sets the trace level.

Declaration
public static TraceLevel TraceLevel
Field Value
Type Description
TraceLevel

TraceListener

Gets or sets the trace callback.

Declaration
public static WriteTrace TraceListener
Field Value
Type Description
WriteTrace

Methods

Debug(String, Object[])

Writes a debug trace.

Declaration
[Conditional("DEBUG")]
public static void Debug(string format, params object[] args)
Parameters
Type Name Description
System.String format

The format string.

System.Object[] args

The argument list.

WriteLine(TraceLevel, String)

Writes a trace if the specified level is enabled.

Declaration
[Conditional("TRACE")]
public static void WriteLine(TraceLevel level, string format)
Parameters
Type Name Description
TraceLevel level

The trace level.

System.String format

The content to trace.

WriteLine(TraceLevel, String, Object)

Writes a trace if the specified level is enabled.

Declaration
[Conditional("TRACE")]
public static void WriteLine(TraceLevel level, string format, object arg1)
Parameters
Type Name Description
TraceLevel level

The trace level.

System.String format

The format string.

System.Object arg1

The first argument.

WriteLine(TraceLevel, String, Object, Object)

Writes a trace if the specified level is enabled.

Declaration
[Conditional("TRACE")]
public static void WriteLine(TraceLevel level, string format, object arg1, object arg2)
Parameters
Type Name Description
TraceLevel level

The trace level.

System.String format

The format string.

System.Object arg1

The first argument.

System.Object arg2

The second argument.

WriteLine(TraceLevel, String, Object, Object, Object)

Writes a trace if the specified level is enabled.

Declaration
[Conditional("TRACE")]
public static void WriteLine(TraceLevel level, string format, object arg1, object arg2, object arg3)
Parameters
Type Name Description
TraceLevel level

The trace level.

System.String format

The format string.

System.Object arg1

The first argument.

System.Object arg2

The second argument.

System.Object arg3

The third argument.

Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX