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
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.