TraceSourceFactoryExtensions.AddTraceSource Metodo

Definizione

Overload

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

Aggiunge un logger TraceSource denominato 'TraceSource' alla factory.

AddTraceSource(ILoggingBuilder, String)

Aggiunge un logger TraceSource denominato 'TraceSource' alla factory.

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

Aggiunge un logger TraceSource denominato 'TraceSource' alla factory.

AddTraceSource(ILoggingBuilder, String, TraceListener)

Aggiunge un logger TraceSource denominato 'TraceSource' alla factory.

AddTraceSource(ILoggerFactory, SourceSwitch)

Attenzione

This method is obsolete and will be removed in a future version. The recommended alternative is AddTraceSource(this ILoggingBuilder builder).

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddTraceSource(Microsoft::Extensions::Logging::ILoggerFactory ^ factory, System::Diagnostics::SourceSwitch ^ sourceSwitch);
public static Microsoft.Extensions.Logging.ILoggerFactory AddTraceSource (this Microsoft.Extensions.Logging.ILoggerFactory factory, System.Diagnostics.SourceSwitch sourceSwitch);
[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
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddTraceSource(this ILoggingBuilder builder).")>]
static member AddTraceSource : Microsoft.Extensions.Logging.ILoggerFactory * System.Diagnostics.SourceSwitch -> Microsoft.Extensions.Logging.ILoggerFactory
<Extension()>
Public Function AddTraceSource (factory As ILoggerFactory, sourceSwitch As SourceSwitch) As ILoggerFactory

Parametri

factory
ILoggerFactory

Oggetto ILoggerFactory da usare.

sourceSwitch
SourceSwitch

Oggetto SourceSwitch da usare.

Restituisce

ILoggerFactory
Attributi

Si applica a

AddTraceSource(ILoggerFactory, String)

Attenzione

This method is obsolete and will be removed in a future version. The recommended alternative is AddTraceSource(this ILoggingBuilder builder).

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

Parametri

factory
ILoggerFactory

Oggetto ILoggerFactory da usare.

switchName
String

Nome dell'elemento SourceSwitch da utilizzare.

Restituisce

ILoggerFactory
Attributi

Si applica a

AddTraceSource(ILoggingBuilder, SourceSwitch)

Aggiunge un logger TraceSource denominato 'TraceSource' alla factory.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddTraceSource(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, System::Diagnostics::SourceSwitch ^ sourceSwitch);
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
<Extension()>
Public Function AddTraceSource (builder As ILoggingBuilder, sourceSwitch As SourceSwitch) As ILoggingBuilder

Parametri

builder
ILoggingBuilder

Oggetto ILoggingBuilder da usare.

sourceSwitch
SourceSwitch

Oggetto SourceSwitch da usare.

Restituisce

ILoggingBuilder

Oggetto ILoggingBuilder che consente il concatenamento di chiamate aggiuntive.

Si applica a

AddTraceSource(ILoggingBuilder, String)

Aggiunge un logger TraceSource denominato 'TraceSource' alla factory.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddTraceSource(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, System::String ^ switchName);
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

Parametri

builder
ILoggingBuilder

Oggetto ILoggingBuilder da usare.

switchName
String

Nome dell'elemento SourceSwitch da utilizzare.

Restituisce

ILoggingBuilder

Oggetto ILoggingBuilder che consente il concatenamento di chiamate aggiuntive.

Si applica a

AddTraceSource(ILoggerFactory, SourceSwitch, TraceListener)

Attenzione

This method is obsolete and will be removed in a future version. The recommended alternative is AddTraceSource(this ILoggingBuilder builder).

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddTraceSource(Microsoft::Extensions::Logging::ILoggerFactory ^ factory, System::Diagnostics::SourceSwitch ^ sourceSwitch, System::Diagnostics::TraceListener ^ listener);
public static Microsoft.Extensions.Logging.ILoggerFactory AddTraceSource (this Microsoft.Extensions.Logging.ILoggerFactory factory, System.Diagnostics.SourceSwitch sourceSwitch, System.Diagnostics.TraceListener listener);
[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
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddTraceSource(this ILoggingBuilder builder).")>]
static member AddTraceSource : Microsoft.Extensions.Logging.ILoggerFactory * System.Diagnostics.SourceSwitch * System.Diagnostics.TraceListener -> Microsoft.Extensions.Logging.ILoggerFactory
<Extension()>
Public Function AddTraceSource (factory As ILoggerFactory, sourceSwitch As SourceSwitch, listener As TraceListener) As ILoggerFactory

Parametri

factory
ILoggerFactory

Oggetto ILoggerFactory da usare.

sourceSwitch
SourceSwitch

Oggetto SourceSwitch da usare.

listener
TraceListener

Oggetto TraceListener da usare.

Restituisce

ILoggerFactory
Attributi

Si applica a

AddTraceSource(ILoggerFactory, String, TraceListener)

Attenzione

This method is obsolete and will be removed in a future version. The recommended alternative is AddTraceSource(this ILoggingBuilder builder).

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddTraceSource(Microsoft::Extensions::Logging::ILoggerFactory ^ factory, System::String ^ switchName, System::Diagnostics::TraceListener ^ listener);
public static Microsoft.Extensions.Logging.ILoggerFactory AddTraceSource (this Microsoft.Extensions.Logging.ILoggerFactory factory, string switchName, System.Diagnostics.TraceListener listener);
[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
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddTraceSource(this ILoggingBuilder builder).")>]
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

Parametri

factory
ILoggerFactory

Oggetto ILoggerFactory da usare.

switchName
String

Nome dell'elemento SourceSwitch da utilizzare.

listener
TraceListener

Oggetto TraceListener da usare.

Restituisce

ILoggerFactory
Attributi

Si applica a

AddTraceSource(ILoggingBuilder, SourceSwitch, TraceListener)

Aggiunge un logger TraceSource denominato 'TraceSource' alla factory.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddTraceSource(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, System::Diagnostics::SourceSwitch ^ sourceSwitch, System::Diagnostics::TraceListener ^ listener);
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
<Extension()>
Public Function AddTraceSource (builder As ILoggingBuilder, sourceSwitch As SourceSwitch, listener As TraceListener) As ILoggingBuilder

Parametri

builder
ILoggingBuilder

Oggetto LoggerFactory da usare.

sourceSwitch
SourceSwitch

Oggetto SourceSwitch da usare.

listener
TraceListener

Oggetto TraceListener da usare.

Restituisce

ILoggingBuilder

Oggetto ILoggingBuilder che consente il concatenamento di chiamate aggiuntive.

Si applica a

AddTraceSource(ILoggingBuilder, String, TraceListener)

Aggiunge un logger TraceSource denominato 'TraceSource' alla factory.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddTraceSource(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, System::String ^ switchName, System::Diagnostics::TraceListener ^ listener);
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

Parametri

builder
ILoggingBuilder

Oggetto ILoggingBuilder da usare.

switchName
String

Nome dell'elemento SourceSwitch da utilizzare.

listener
TraceListener

Oggetto TraceListener da usare.

Restituisce

ILoggingBuilder

Oggetto ILoggingBuilder che consente il concatenamento di chiamate aggiuntive.

Si applica a