TraceSourceFactoryExtensions.AddTraceSource Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
AddTraceSource(ILoggingBuilder, SourceSwitch) |
Aggiunge un logger TraceSource denominato 'TraceSource' alla factory. |
AddTraceSource(ILoggingBuilder, String) |
Aggiunge un logger TraceSource denominato 'TraceSource' alla factory. |
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(ILoggingBuilder, SourceSwitch)
- Origine:
- TraceSourceFactoryExtensions.cs
- Origine:
- TraceSourceFactoryExtensions.cs
- Origine:
- TraceSourceFactoryExtensions.cs
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
Oggetto ILoggingBuilder che consente il concatenamento di chiamate aggiuntive.
Si applica a
AddTraceSource(ILoggingBuilder, String)
- Origine:
- TraceSourceFactoryExtensions.cs
- Origine:
- TraceSourceFactoryExtensions.cs
- Origine:
- TraceSourceFactoryExtensions.cs
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
Oggetto ILoggingBuilder che consente il concatenamento di chiamate aggiuntive.
Si applica a
AddTraceSource(ILoggingBuilder, SourceSwitch, TraceListener)
- Origine:
- TraceSourceFactoryExtensions.cs
- Origine:
- TraceSourceFactoryExtensions.cs
- Origine:
- TraceSourceFactoryExtensions.cs
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
Oggetto ILoggingBuilder che consente il concatenamento di chiamate aggiuntive.
Si applica a
AddTraceSource(ILoggingBuilder, String, TraceListener)
- Origine:
- TraceSourceFactoryExtensions.cs
- Origine:
- TraceSourceFactoryExtensions.cs
- Origine:
- TraceSourceFactoryExtensions.cs
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
Oggetto ILoggingBuilder che consente il concatenamento di chiamate aggiuntive.