Tracer Class
Retired Content |
---|
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
Represents a performance tracing class to log method entry/exit and duration.
Namespace: Microsoft.Practices.EnterpriseLibrary.Logging
Assembly: Microsoft.Practices.EnterpriseLibrary.Logging (in Microsoft.Practices.EnterpriseLibrary.Logging.dll)
Syntax
'Declaration
PublicClassTracer _
Implements IDisposable
publicclassTracer : IDisposable
publicref classTracer : IDisposable
publicclass Tracer implements IDisposable
Remarks
Lifetime of the Tracer object will determine the beginning and the end of the trace. The trace message will include, method being traced, start time, end time and duration.
Since Tracer uses the logging block to log the trace message, you can include application data as part of your trace message. Configured items from call context will be logged as part of the message.
Trace message will be logged to the log category with the same name as the tracer operation name. You must configure the operation categories, or the catch-all categories, with desired log sinks to log the trace messages.
Inheritance Hierarchy
System.Object
Microsoft.Practices.EnterpriseLibrary.Logging.Tracer
See Also
Microsoft.Practices.EnterpriseLibrary.Logging Namespace
Retired Content |
---|
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |