Partilhar via


TraceConfiguration Class

Definition

This class will only provide log registration that is not capable of doing cross-process correlation. It is advised to only use this for services that run within the devenv process; however it should work for all services if you want to use this now.

Check back for a future update of this library.

public ref class TraceConfiguration : IDisposable, Microsoft::VisualStudio::LogHub::ITraceConfiguration
public class TraceConfiguration : IDisposable, Microsoft.VisualStudio.LogHub.ITraceConfiguration
type TraceConfiguration = class
    interface ITraceConfiguration
    interface IDisposable
Public Class TraceConfiguration
Implements IDisposable, ITraceConfiguration
Inheritance
TraceConfiguration
Implements

Methods

CreateTraceConfigurationInstanceAsync(IServiceBroker, Boolean, CancellationToken)

This will create an ITraceHubRegistrationService instance that can be used to call RegisterLogSourceAsync(LogId, LoggerOptions, TraceSource, CancellationToken).

CreateTraceConfigurationInstanceAsync(IServiceBroker, CancellationToken)
Obsolete.

This will create an ITraceHubRegistrationService instance that can be used to call RegisterLogSourceAsync(LogId, LoggerOptions, TraceSource, CancellationToken).

Dispose()
Dispose(Boolean)
GetLogFilePathPrefix(String, String)
GetLogSessionKey()
RegisterLogSourceAsync(LogId, LoggerOptions, CancellationToken)

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

RegisterLogSourceAsync(LogId, LoggerOptions, TraceSource, Boolean, CancellationToken) System.Object.RegisterLogSourceAsync(Microsoft.VisualStudio.RpcContracts.Logging.LogId,Microsoft.VisualStudio.RpcContracts.Logging.LoggerOptions,System.Diagnostics.TraceSource,System.Boolean,System.Threading.CancellationToken)
RegisterLogSourceAsync(LogId, LoggerOptions, TraceSource, CancellationToken)

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

Applies to