TraceSourceFactoryExtensions.AddTraceSource Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
AddTraceSource(ILoggingBuilder, SourceSwitch) |
Adiciona um agente de TraceSource chamado 'TraceSource' à fábrica. |
AddTraceSource(ILoggingBuilder, String) |
Adiciona um agente de TraceSource chamado 'TraceSource' à fábrica. |
AddTraceSource(ILoggingBuilder, SourceSwitch, TraceListener) |
Adiciona um agente de TraceSource chamado 'TraceSource' à fábrica. |
AddTraceSource(ILoggingBuilder, String, TraceListener) |
Adiciona um agente de TraceSource chamado 'TraceSource' à fábrica. |
AddTraceSource(ILoggingBuilder, SourceSwitch)
Adiciona um agente de TraceSource chamado 'TraceSource' à fábrica.
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.
- sourceSwitch
- SourceSwitch
O SourceSwitch a ser usado.
Retornos
O ILoggingBuilder para que chamadas adicionais possam ser encadeadas.
Aplica-se a
AddTraceSource(ILoggingBuilder, String)
Adiciona um agente de TraceSource chamado 'TraceSource' à fábrica.
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.
- switchName
- String
O nome do SourceSwitch a ser usado.
Retornos
O ILoggingBuilder para que chamadas adicionais possam ser encadeadas.
Aplica-se a
AddTraceSource(ILoggingBuilder, SourceSwitch, TraceListener)
Adiciona um agente de TraceSource chamado 'TraceSource' à fábrica.
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.
- sourceSwitch
- SourceSwitch
O SourceSwitch a ser usado.
- listener
- TraceListener
O TraceListener a ser usado.
Retornos
O ILoggingBuilder para que chamadas adicionais possam ser encadeadas.
Aplica-se a
AddTraceSource(ILoggingBuilder, String, TraceListener)
Adiciona um agente de TraceSource chamado 'TraceSource' à fábrica.
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.
- switchName
- String
O nome do SourceSwitch a ser usado.
- listener
- TraceListener
O TraceListener a ser usado.
Retornos
O ILoggingBuilder para que chamadas adicionais possam ser encadeadas.