Delen via


LocalTraceConfiguration.RegisterLogSource Method

Definition

Overloads

RegisterLogSource(LogId, LoggerOptions)

Registers a new log stream with the tracing hub and exposes it to requesting clients.

RegisterLogSource(LogId, LoggerOptions, TraceSource)

Registers a new log stream with the tracing hub and exposes it to requesting clients.

RegisterLogSource(LogId, LoggerOptions)

Registers a new log stream with the tracing hub and exposes it to requesting clients.

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

Parameters

id
LogId

Representing the fully-qualified id of a given log stream and all information that can be used to identify the log.

options
LoggerOptions

Logging options for a given log stream.

Returns

Results of calls to register a new trace log stream.

Applies to

RegisterLogSource(LogId, LoggerOptions, TraceSource)

Registers a new log stream with the tracing hub and exposes it to requesting clients.

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

Parameters

id
LogId

Representing the fully-qualified id of a given log stream and all information that can be used to identify the log.

options
LoggerOptions

Logging options for a given log stream.

traceSource
TraceSource

The TraceSource

Returns

Results of calls to register a new trace log stream.

Applies to