Table of Contents

Class TraceManager

Namespace
Microsoft.Practices.EnterpriseLibrary.Logging
Assembly
Microsoft.Practices.EnterpriseLibrary.Logging.dll

Represents a performance tracing class to log method entry/exit and duration.

public class TraceManager
Inheritance
TraceManager
Inherited Members

Constructors

TraceManager(LogWriter)

Create an instance of TraceManager giving the LogWriter.

public TraceManager(LogWriter logWriter)

Parameters

logWriter LogWriter

The LogWriter that is used to write trace messages.

Properties

LogWriter

For testing purpose

public LogWriter LogWriter { get; }

Property Value

LogWriter

Methods

StartTrace(string)

Initializes a new instance of the Tracer class with the given logical operation name.

public Tracer StartTrace(string operation)

Parameters

operation string

The operation for the Tracer

Returns

Tracer

StartTrace(string, Guid)

Initializes a new instance of the Tracer class with the given logical operation name and activity id.

public Tracer StartTrace(string operation, Guid activityId)

Parameters

operation string

The operation for the Tracer

activityId Guid

The activity id

Returns

Tracer