Freigeben über


LocalTraceConfiguration.RegisterLogSource Methode

Definition

Überlädt

RegisterLogSource(LogId, LoggerOptions)

Registriert einen neuen Protokolldatenstrom beim Ablaufverfolgungshub und macht ihn für anfordernde Clients verfügbar.

RegisterLogSource(LogId, LoggerOptions, TraceSource)

Registriert einen neuen Protokolldatenstrom beim Ablaufverfolgungshub und macht ihn für anfordernde Clients verfügbar.

RegisterLogSource(LogId, LoggerOptions)

Registriert einen neuen Protokolldatenstrom beim Ablaufverfolgungshub und macht ihn für anfordernde Clients verfügbar.

public System.Diagnostics.TraceSource RegisterLogSource(Microsoft.VisualStudio.RpcContracts.Logging.LogId id, Microsoft.VisualStudio.RpcContracts.Logging.LoggerOptions options);
member this.RegisterLogSource : Microsoft.VisualStudio.RpcContracts.Logging.LogId * Microsoft.VisualStudio.RpcContracts.Logging.LoggerOptions -> System.Diagnostics.TraceSource
Public Function RegisterLogSource (id As LogId, options As LoggerOptions) As TraceSource

Parameter

id
LogId

Stellt die vollqualifizierte ID eines angegebenen Protokolldatenstroms und alle Informationen dar, die zum Identifizieren des Protokolls verwendet werden können.

options
LoggerOptions

Protokollierungsoptionen für einen bestimmten Protokolldatenstrom.

Gibt zurück

Ergebnisse von Aufrufen zum Registrieren eines neuen Ablaufverfolgungsprotokolldatenstroms.

Gilt für:

RegisterLogSource(LogId, LoggerOptions, TraceSource)

Registriert einen neuen Protokolldatenstrom beim Ablaufverfolgungshub und macht ihn für anfordernde Clients verfügbar.

public System.Diagnostics.TraceSource RegisterLogSource(Microsoft.VisualStudio.RpcContracts.Logging.LogId id, Microsoft.VisualStudio.RpcContracts.Logging.LoggerOptions options, System.Diagnostics.TraceSource? traceSource);
member this.RegisterLogSource : Microsoft.VisualStudio.RpcContracts.Logging.LogId * Microsoft.VisualStudio.RpcContracts.Logging.LoggerOptions * System.Diagnostics.TraceSource -> System.Diagnostics.TraceSource
Public Function RegisterLogSource (id As LogId, options As LoggerOptions, traceSource As TraceSource) As TraceSource

Parameter

id
LogId

Stellt die vollqualifizierte ID eines angegebenen Protokolldatenstroms und alle Informationen dar, die zum Identifizieren des Protokolls verwendet werden können.

options
LoggerOptions

Protokollierungsoptionen für einen bestimmten Protokolldatenstrom.

traceSource
TraceSource

Der TraceSource

Gibt zurück

Ergebnisse von Aufrufen zum Registrieren eines neuen Ablaufverfolgungsprotokolldatenstroms.

Gilt für: