TraceLogProvider Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Implements a trace log provider for .Net tracing.
public class TraceLogProvider : Microsoft.Azure.Documents.ChangeFeedProcessor.Logging.ILogProvider
type TraceLogProvider = class
interface ILogProvider
Public Class TraceLogProvider
Implements ILogProvider
- Inheritance
-
TraceLogProvider
- Implements
Examples
using Microsoft.Azure.Documents.ChangeFeedProcessor.Logging;
var hostName = "SampleHost";
var tracelogProvider = new TraceLogProvider();
using (tracelogProvider.OpenNestedContext(hostName))
{
LogProvider.SetCurrentLogProvider(tracelogProvider);
// After this, create IChangeFeedProcessor instance and start/stop it.
}
Constructors
TraceLogProvider() |
Initializes a new instance of the TraceLogProvider class. |
Methods
GetLogger(String) |
Gets the logger with specified name. |
OpenMappedContext(String, String) |
Opens a mapped diagnostics context. |
OpenNestedContext(String) |
Opens a nested diagnostics context. |
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET