TraceSourceFactoryExtensions.AddTraceSource TraceSourceFactoryExtensions.AddTraceSource TraceSourceFactoryExtensions.AddTraceSource Method

Definition

Overloads

AddTraceSource(ILoggerFactory, SourceSwitch) AddTraceSource(ILoggerFactory, SourceSwitch)
AddTraceSource(ILoggerFactory, String) AddTraceSource(ILoggerFactory, String) AddTraceSource(ILoggerFactory, String)
AddTraceSource(ILoggingBuilder, SourceSwitch) AddTraceSource(ILoggingBuilder, SourceSwitch)

Adds a TraceSource logger named 'TraceSource' to the factory.

AddTraceSource(ILoggingBuilder, String) AddTraceSource(ILoggingBuilder, String) AddTraceSource(ILoggingBuilder, String)

Adds a TraceSource logger named 'TraceSource' to the factory.

AddTraceSource(ILoggerFactory, SourceSwitch, TraceListener) AddTraceSource(ILoggerFactory, SourceSwitch, TraceListener)
AddTraceSource(ILoggerFactory, String, TraceListener) AddTraceSource(ILoggerFactory, String, TraceListener) AddTraceSource(ILoggerFactory, String, TraceListener)
AddTraceSource(ILoggingBuilder, SourceSwitch, TraceListener) AddTraceSource(ILoggingBuilder, SourceSwitch, TraceListener)

Adds a TraceSource logger named 'TraceSource' to the factory.

AddTraceSource(ILoggingBuilder, String, TraceListener) AddTraceSource(ILoggingBuilder, String, TraceListener) AddTraceSource(ILoggingBuilder, String, TraceListener)

Adds a TraceSource logger named 'TraceSource' to the factory.

AddTraceSource(ILoggerFactory, SourceSwitch) AddTraceSource(ILoggerFactory, SourceSwitch)

Warning

This API is now obsolete.

[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddTraceSource(this ILoggingBuilder builder).")]
public static Microsoft.Extensions.Logging.ILoggerFactory AddTraceSource (this Microsoft.Extensions.Logging.ILoggerFactory factory, System.Diagnostics.SourceSwitch sourceSwitch);
static member AddTraceSource : Microsoft.Extensions.Logging.ILoggerFactory * System.Diagnostics.SourceSwitch -> Microsoft.Extensions.Logging.ILoggerFactory

Parameters

Returns

AddTraceSource(ILoggerFactory, String) AddTraceSource(ILoggerFactory, String) AddTraceSource(ILoggerFactory, String)

Warning

This API is now obsolete.

[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddTraceSource(this ILoggingBuilder builder).")]
public static Microsoft.Extensions.Logging.ILoggerFactory AddTraceSource (this Microsoft.Extensions.Logging.ILoggerFactory factory, string switchName);
static member AddTraceSource : Microsoft.Extensions.Logging.ILoggerFactory * string -> Microsoft.Extensions.Logging.ILoggerFactory
<Extension()>
Public Function AddTraceSource (factory As ILoggerFactory, switchName As String) As ILoggerFactory

Parameters

switchName
String String String

The name of the SourceSwitch to use.

Returns

AddTraceSource(ILoggingBuilder, SourceSwitch) AddTraceSource(ILoggingBuilder, SourceSwitch)

Adds a TraceSource logger named 'TraceSource' to the factory.

public static Microsoft.Extensions.Logging.ILoggingBuilder AddTraceSource (this Microsoft.Extensions.Logging.ILoggingBuilder builder, System.Diagnostics.SourceSwitch sourceSwitch);
static member AddTraceSource : Microsoft.Extensions.Logging.ILoggingBuilder * System.Diagnostics.SourceSwitch -> Microsoft.Extensions.Logging.ILoggingBuilder

Parameters

Returns

AddTraceSource(ILoggingBuilder, String) AddTraceSource(ILoggingBuilder, String) AddTraceSource(ILoggingBuilder, String)

Adds a TraceSource logger named 'TraceSource' to the factory.

public static Microsoft.Extensions.Logging.ILoggingBuilder AddTraceSource (this Microsoft.Extensions.Logging.ILoggingBuilder builder, string switchName);
static member AddTraceSource : Microsoft.Extensions.Logging.ILoggingBuilder * string -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function AddTraceSource (builder As ILoggingBuilder, switchName As String) As ILoggingBuilder

Parameters

switchName
String String String

The name of the SourceSwitch to use.

Returns

AddTraceSource(ILoggerFactory, SourceSwitch, TraceListener) AddTraceSource(ILoggerFactory, SourceSwitch, TraceListener)

Warning

This API is now obsolete.

[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddTraceSource(this ILoggingBuilder builder).")]
public static Microsoft.Extensions.Logging.ILoggerFactory AddTraceSource (this Microsoft.Extensions.Logging.ILoggerFactory factory, System.Diagnostics.SourceSwitch sourceSwitch, System.Diagnostics.TraceListener listener);
static member AddTraceSource : Microsoft.Extensions.Logging.ILoggerFactory * System.Diagnostics.SourceSwitch * System.Diagnostics.TraceListener -> Microsoft.Extensions.Logging.ILoggerFactory

Parameters

Returns

AddTraceSource(ILoggerFactory, String, TraceListener) AddTraceSource(ILoggerFactory, String, TraceListener) AddTraceSource(ILoggerFactory, String, TraceListener)

Warning

This API is now obsolete.

[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddTraceSource(this ILoggingBuilder builder).")]
public static Microsoft.Extensions.Logging.ILoggerFactory AddTraceSource (this Microsoft.Extensions.Logging.ILoggerFactory factory, string switchName, System.Diagnostics.TraceListener listener);
static member AddTraceSource : Microsoft.Extensions.Logging.ILoggerFactory * string * System.Diagnostics.TraceListener -> Microsoft.Extensions.Logging.ILoggerFactory
<Extension()>
Public Function AddTraceSource (factory As ILoggerFactory, switchName As String, listener As TraceListener) As ILoggerFactory

Parameters

switchName
String String String

The name of the SourceSwitch to use.

Returns

AddTraceSource(ILoggingBuilder, SourceSwitch, TraceListener) AddTraceSource(ILoggingBuilder, SourceSwitch, TraceListener)

Adds a TraceSource logger named 'TraceSource' to the factory.

public static Microsoft.Extensions.Logging.ILoggingBuilder AddTraceSource (this Microsoft.Extensions.Logging.ILoggingBuilder builder, System.Diagnostics.SourceSwitch sourceSwitch, System.Diagnostics.TraceListener listener);
static member AddTraceSource : Microsoft.Extensions.Logging.ILoggingBuilder * System.Diagnostics.SourceSwitch * System.Diagnostics.TraceListener -> Microsoft.Extensions.Logging.ILoggingBuilder

Parameters

Returns

AddTraceSource(ILoggingBuilder, String, TraceListener) AddTraceSource(ILoggingBuilder, String, TraceListener) AddTraceSource(ILoggingBuilder, String, TraceListener)

Adds a TraceSource logger named 'TraceSource' to the factory.

public static Microsoft.Extensions.Logging.ILoggingBuilder AddTraceSource (this Microsoft.Extensions.Logging.ILoggingBuilder builder, string switchName, System.Diagnostics.TraceListener listener);
static member AddTraceSource : Microsoft.Extensions.Logging.ILoggingBuilder * string * System.Diagnostics.TraceListener -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function AddTraceSource (builder As ILoggingBuilder, switchName As String, listener As TraceListener) As ILoggingBuilder

Parameters

switchName
String String String

The name of the SourceSwitch to use.

Returns

Applies to