TraceSourceFactoryExtensions.AddTraceSource 메서드

정의

오버로드

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

'TraceSource'라는 TraceSource 로거를 팩터리에 추가합니다.Adds a TraceSource logger named 'TraceSource' to the factory.

AddTraceSource(ILoggingBuilder, String)

'TraceSource'라는 TraceSource 로거를 팩터리에 추가합니다.Adds a TraceSource logger named 'TraceSource' to the factory.

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

'TraceSource'라는 TraceSource 로거를 팩터리에 추가합니다.Adds a TraceSource logger named 'TraceSource' to the factory.

AddTraceSource(ILoggingBuilder, String, TraceListener)

'TraceSource'라는 TraceSource 로거를 팩터리에 추가합니다.Adds a TraceSource logger named 'TraceSource' to the factory.

AddTraceSource(ILoggerFactory, SourceSwitch)

경고

이 API는 현재 사용되지 않습니다.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddTraceSource(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

매개 변수

factory
ILoggerFactory

사용할 ILoggerFactory입니다.The ILoggerFactory to use.

sourceSwitch
SourceSwitch

사용할 SourceSwitch입니다.The SourceSwitch to use.

반환

특성

AddTraceSource(ILoggerFactory, String)

경고

이 API는 현재 사용되지 않습니다.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddTraceSource(Microsoft::Extensions::Logging::ILoggerFactory ^ factory, System::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
<Extension()>
Public Function AddTraceSource (factory As ILoggerFactory, switchName As String) As ILoggerFactory

매개 변수

factory
ILoggerFactory

사용할 ILoggerFactory입니다.The ILoggerFactory to use.

switchName
String

사용할 SourceSwitch의 이름입니다.The name of the SourceSwitch to use.

반환

특성

AddTraceSource(ILoggingBuilder, SourceSwitch)

'TraceSource'라는 TraceSource 로거를 팩터리에 추가합니다.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

매개 변수

builder
ILoggingBuilder

사용할 ILoggingBuilder입니다.The ILoggingBuilder to use.

sourceSwitch
SourceSwitch

사용할 SourceSwitch입니다.The SourceSwitch to use.

반환

추가 호출을 연결할 수 있도록 하는 ILoggingBuilder입니다.The ILoggingBuilder so that additional calls can be chained.

AddTraceSource(ILoggingBuilder, String)

'TraceSource'라는 TraceSource 로거를 팩터리에 추가합니다.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

매개 변수

builder
ILoggingBuilder

사용할 ILoggingBuilder입니다.The ILoggingBuilder to use.

switchName
String

사용할 SourceSwitch의 이름입니다.The name of the SourceSwitch to use.

반환

추가 호출을 연결할 수 있도록 하는 ILoggingBuilder입니다.The ILoggingBuilder so that additional calls can be chained.

AddTraceSource(ILoggerFactory, SourceSwitch, TraceListener)

경고

이 API는 현재 사용되지 않습니다.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddTraceSource(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

매개 변수

factory
ILoggerFactory

사용할 ILoggerFactory입니다.The ILoggerFactory to use.

sourceSwitch
SourceSwitch

사용할 SourceSwitch입니다.The SourceSwitch to use.

listener
TraceListener

사용할 TraceListener입니다.The TraceListener to use.

반환

특성

AddTraceSource(ILoggerFactory, String, TraceListener)

경고

이 API는 현재 사용되지 않습니다.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddTraceSource(Microsoft::Extensions::Logging::ILoggerFactory ^ factory, System::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
<Extension()>
Public Function AddTraceSource (factory As ILoggerFactory, switchName As String, listener As TraceListener) As ILoggerFactory

매개 변수

factory
ILoggerFactory

사용할 ILoggerFactory입니다.The ILoggerFactory to use.

switchName
String

사용할 SourceSwitch의 이름입니다.The name of the SourceSwitch to use.

listener
TraceListener

사용할 TraceListener입니다.The TraceListener to use.

반환

특성

AddTraceSource(ILoggingBuilder, SourceSwitch, TraceListener)

'TraceSource'라는 TraceSource 로거를 팩터리에 추가합니다.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

매개 변수

builder
ILoggingBuilder

사용할 LoggerFactory입니다.The LoggerFactory to use.

sourceSwitch
SourceSwitch

사용할 SourceSwitch입니다.The SourceSwitch to use.

listener
TraceListener

사용할 TraceListener입니다.The TraceListener to use.

반환

추가 호출을 연결할 수 있도록 하는 ILoggingBuilder입니다.The ILoggingBuilder so that additional calls can be chained.

AddTraceSource(ILoggingBuilder, String, TraceListener)

'TraceSource'라는 TraceSource 로거를 팩터리에 추가합니다.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

매개 변수

builder
ILoggingBuilder

사용할 ILoggingBuilder입니다.The ILoggingBuilder to use.

switchName
String

사용할 SourceSwitch의 이름입니다.The name of the SourceSwitch to use.

listener
TraceListener

사용할 TraceListener입니다.The TraceListener to use.

반환

추가 호출을 연결할 수 있도록 하는 ILoggingBuilder입니다.The ILoggingBuilder so that additional calls can be chained.

적용 대상