LocalTraceConfiguration.RegisterLogSource Method
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.
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.