TraceSourceFactoryExtensions.AddTraceSource Método

Definição

Sobrecargas

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

Adiciona um agente de TraceSource chamado 'TraceSource' à fábrica.Adds a TraceSource logger named 'TraceSource' to the factory.

AddTraceSource(ILoggingBuilder, String)

Adiciona um agente de TraceSource chamado 'TraceSource' à fábrica.Adds a TraceSource logger named 'TraceSource' to the factory.

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

Adiciona um agente de TraceSource chamado 'TraceSource' à fábrica.Adds a TraceSource logger named 'TraceSource' to the factory.

AddTraceSource(ILoggingBuilder, String, TraceListener)

Adiciona um agente de TraceSource chamado 'TraceSource' à fábrica.Adds a TraceSource logger named 'TraceSource' to the factory.

AddTraceSource(ILoggerFactory, SourceSwitch)

Cuidado

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

Parâmetros

factory
ILoggerFactory

O ILoggerFactory a ser usado.The ILoggerFactory to use.

sourceSwitch
SourceSwitch

O SourceSwitch a ser usado.The SourceSwitch to use.

Retornos

ILoggerFactory
Atributos

Aplica-se a

AddTraceSource(ILoggerFactory, String)

Cuidado

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

Parâmetros

factory
ILoggerFactory

O ILoggerFactory a ser usado.The ILoggerFactory to use.

switchName
String

O nome do SourceSwitch a ser usado.The name of the SourceSwitch to use.

Retornos

ILoggerFactory
Atributos

Aplica-se a

AddTraceSource(ILoggingBuilder, SourceSwitch)

Adiciona um agente de TraceSource chamado 'TraceSource' à fábrica.Adds a TraceSource logger named 'TraceSource' to the 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

Parâmetros

builder
ILoggingBuilder

O ILoggingBuilder a ser usado.The ILoggingBuilder to use.

sourceSwitch
SourceSwitch

O SourceSwitch a ser usado.The SourceSwitch to use.

Retornos

ILoggingBuilder

O ILoggingBuilder para que chamadas adicionais possam ser encadeadas.The ILoggingBuilder so that additional calls can be chained.

Aplica-se a

AddTraceSource(ILoggingBuilder, String)

Adiciona um agente de TraceSource chamado 'TraceSource' à fábrica.Adds a TraceSource logger named 'TraceSource' to the 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

Parâmetros

builder
ILoggingBuilder

O ILoggingBuilder a ser usado.The ILoggingBuilder to use.

switchName
String

O nome do SourceSwitch a ser usado.The name of the SourceSwitch to use.

Retornos

ILoggingBuilder

O ILoggingBuilder para que chamadas adicionais possam ser encadeadas.The ILoggingBuilder so that additional calls can be chained.

Aplica-se a

AddTraceSource(ILoggerFactory, SourceSwitch, TraceListener)

Cuidado

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

Parâmetros

factory
ILoggerFactory

O ILoggerFactory a ser usado.The ILoggerFactory to use.

sourceSwitch
SourceSwitch

O SourceSwitch a ser usado.The SourceSwitch to use.

listener
TraceListener

O TraceListener a ser usado.The TraceListener to use.

Retornos

ILoggerFactory
Atributos

Aplica-se a

AddTraceSource(ILoggerFactory, String, TraceListener)

Cuidado

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

Parâmetros

factory
ILoggerFactory

O ILoggerFactory a ser usado.The ILoggerFactory to use.

switchName
String

O nome do SourceSwitch a ser usado.The name of the SourceSwitch to use.

listener
TraceListener

O TraceListener a ser usado.The TraceListener to use.

Retornos

ILoggerFactory
Atributos

Aplica-se a

AddTraceSource(ILoggingBuilder, SourceSwitch, TraceListener)

Adiciona um agente de TraceSource chamado 'TraceSource' à fábrica.Adds a TraceSource logger named 'TraceSource' to the 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

Parâmetros

builder
ILoggingBuilder

O LoggerFactory a ser usado.The LoggerFactory to use.

sourceSwitch
SourceSwitch

O SourceSwitch a ser usado.The SourceSwitch to use.

listener
TraceListener

O TraceListener a ser usado.The TraceListener to use.

Retornos

ILoggingBuilder

O ILoggingBuilder para que chamadas adicionais possam ser encadeadas.The ILoggingBuilder so that additional calls can be chained.

Aplica-se a

AddTraceSource(ILoggingBuilder, String, TraceListener)

Adiciona um agente de TraceSource chamado 'TraceSource' à fábrica.Adds a TraceSource logger named 'TraceSource' to the 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

Parâmetros

builder
ILoggingBuilder

O ILoggingBuilder a ser usado.The ILoggingBuilder to use.

switchName
String

O nome do SourceSwitch a ser usado.The name of the SourceSwitch to use.

listener
TraceListener

O TraceListener a ser usado.The TraceListener to use.

Retornos

ILoggingBuilder

O ILoggingBuilder para que chamadas adicionais possam ser encadeadas.The ILoggingBuilder so that additional calls can be chained.

Aplica-se a