ConsoleLoggerExtensions.AddConsole 메서드

정의

오버로드

AddConsole(ILoggerFactory)

LogLevel.Information 이상에 사용하도록 설정된 콘솔 로거를 추가합니다.Adds a console logger that is enabled for LogLevel.Information or higher.

AddConsole(ILoggingBuilder)

‘Console’이라는 콘솔 로거를 팩터리에 추가합니다.Adds a console logger named 'Console' to the factory.

AddConsole(ILoggerFactory, IConfiguration)
AddConsole(ILoggerFactory, IConsoleLoggerSettings)
AddConsole(ILoggerFactory, LogLevel)

minLevel 이상의 LogLevel.Information에 사용하도록 설정된 콘솔 로거를 추가합니다.Adds a console logger that is enabled for LogLevels of minLevel or higher.

AddConsole(ILoggerFactory, Boolean)

LogLevel.Information 이상에 사용하도록 설정된 콘솔 로거를 추가합니다.Adds a console logger that is enabled for LogLevel.Information or higher.

AddConsole(ILoggerFactory, Func<String,LogLevel,Boolean>)

필터 함수에 정의된 대로 설정되는 콘솔 로거를 추가합니다.Adds a console logger that is enabled as defined by the filter function.

AddConsole(ILoggingBuilder, Action<ConsoleLoggerOptions>)

‘Console’이라는 콘솔 로거를 팩터리에 추가합니다.Adds a console logger named 'Console' to the factory.

AddConsole(ILoggerFactory, LogLevel, Boolean)

minLevel 이상의 LogLevel.Information에 사용하도록 설정된 콘솔 로거를 추가합니다.Adds a console logger that is enabled for LogLevels of minLevel or higher.

AddConsole(ILoggerFactory, Func<String,LogLevel,Boolean>, Boolean)

필터 함수에 정의된 대로 설정되는 콘솔 로거를 추가합니다.Adds a console logger that is enabled as defined by the filter function.

AddConsole(ILoggerFactory)

경고

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

LogLevel.Information 이상에 사용하도록 설정된 콘솔 로거를 추가합니다.Adds a console logger that is enabled for LogLevel.Information or higher.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddConsole(Microsoft::Extensions::Logging::ILoggerFactory ^ factory);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")]
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory);
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.Extensions.Logging.ILoggerFactory
<Extension()>
Public Function AddConsole (factory As ILoggerFactory) As ILoggerFactory

매개 변수

factory
ILoggerFactory

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

반환

특성

AddConsole(ILoggingBuilder)

‘Console’이라는 콘솔 로거를 팩터리에 추가합니다.Adds a console logger named 'Console' to the factory.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddConsole(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddConsole (this Microsoft.Extensions.Logging.ILoggingBuilder builder);
static member AddConsole : Microsoft.Extensions.Logging.ILoggingBuilder -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function AddConsole (builder As ILoggingBuilder) As ILoggingBuilder

매개 변수

builder
ILoggingBuilder

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

반환

AddConsole(ILoggerFactory, IConfiguration)

경고

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddConsole(Microsoft::Extensions::Logging::ILoggerFactory ^ factory, Microsoft::Extensions::Configuration::IConfiguration ^ configuration);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")]
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, Microsoft.Extensions.Configuration.IConfiguration configuration);
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Configuration.IConfiguration -> Microsoft.Extensions.Logging.ILoggerFactory
<Extension()>
Public Function AddConsole (factory As ILoggerFactory, configuration As IConfiguration) As ILoggerFactory

매개 변수

factory
ILoggerFactory

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

configuration
IConfiguration

IConfiguration에 사용할 IConsoleLoggerSettings입니다.The IConfiguration to use for IConsoleLoggerSettings.

반환

특성

AddConsole(ILoggerFactory, IConsoleLoggerSettings)

경고

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddConsole(Microsoft::Extensions::Logging::ILoggerFactory ^ factory, Microsoft::Extensions::Logging::Console::IConsoleLoggerSettings ^ settings);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")]
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, Microsoft.Extensions.Logging.Console.IConsoleLoggerSettings settings);
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Logging.Console.IConsoleLoggerSettings -> Microsoft.Extensions.Logging.ILoggerFactory
<Extension()>
Public Function AddConsole (factory As ILoggerFactory, settings As IConsoleLoggerSettings) As ILoggerFactory

매개 변수

factory
ILoggerFactory

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

settings
IConsoleLoggerSettings

만든 ConsoleLogger에 적용할 설정입니다.The settings to apply to created ConsoleLogger's.

반환

특성

AddConsole(ILoggerFactory, LogLevel)

경고

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

minLevel 이상의 LogLevel.Information에 사용하도록 설정된 콘솔 로거를 추가합니다.Adds a console logger that is enabled for LogLevels of minLevel or higher.

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

매개 변수

factory
ILoggerFactory

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

minLevel
LogLevel

로깅할 최소 LogLevel입니다.The minimum LogLevel to be logged

반환

특성

AddConsole(ILoggerFactory, Boolean)

경고

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

LogLevel.Information 이상에 사용하도록 설정된 콘솔 로거를 추가합니다.Adds a console logger that is enabled for LogLevel.Information or higher.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddConsole(Microsoft::Extensions::Logging::ILoggerFactory ^ factory, bool includeScopes);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")]
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, bool includeScopes);
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * bool -> Microsoft.Extensions.Logging.ILoggerFactory
<Extension()>
Public Function AddConsole (factory As ILoggerFactory, includeScopes As Boolean) As ILoggerFactory

매개 변수

factory
ILoggerFactory

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

includeScopes
Boolean

로그 범위 정보를 출력에 표시할지 여부를 나타내는 값입니다.A value which indicates whether log scope information should be displayed in the output.

반환

특성

AddConsole(ILoggerFactory, Func<String,LogLevel,Boolean>)

경고

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

필터 함수에 정의된 대로 설정되는 콘솔 로거를 추가합니다.Adds a console logger that is enabled as defined by the filter function.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddConsole(Microsoft::Extensions::Logging::ILoggerFactory ^ factory, Func<System::String ^, Microsoft::Extensions::Logging::LogLevel, bool> ^ filter);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")]
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, Func<string,Microsoft.Extensions.Logging.LogLevel,bool> filter);
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * Func<string, Microsoft.Extensions.Logging.LogLevel, bool> -> Microsoft.Extensions.Logging.ILoggerFactory
<Extension()>
Public Function AddConsole (factory As ILoggerFactory, filter As Func(Of String, LogLevel, Boolean)) As ILoggerFactory

매개 변수

factory
ILoggerFactory

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

filter
Func<String,LogLevel,Boolean>

로그에 적용할 범주 필터입니다.The category filter to apply to logs.

반환

특성

AddConsole(ILoggingBuilder, Action<ConsoleLoggerOptions>)

‘Console’이라는 콘솔 로거를 팩터리에 추가합니다.Adds a console logger named 'Console' to the factory.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddConsole(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, Action<Microsoft::Extensions::Logging::Console::ConsoleLoggerOptions ^> ^ configure);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddConsole (this Microsoft.Extensions.Logging.ILoggingBuilder builder, Action<Microsoft.Extensions.Logging.Console.ConsoleLoggerOptions> configure);
static member AddConsole : Microsoft.Extensions.Logging.ILoggingBuilder * Action<Microsoft.Extensions.Logging.Console.ConsoleLoggerOptions> -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function AddConsole (builder As ILoggingBuilder, configure As Action(Of ConsoleLoggerOptions)) As ILoggingBuilder

매개 변수

builder
ILoggingBuilder

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

configure
Action<ConsoleLoggerOptions>

ConsoleLogger를 구성하기 위한 대리자입니다.A delegate to configure the ConsoleLogger.

반환

AddConsole(ILoggerFactory, LogLevel, Boolean)

경고

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

minLevel 이상의 LogLevel.Information에 사용하도록 설정된 콘솔 로거를 추가합니다.Adds a console logger that is enabled for LogLevels of minLevel or higher.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddConsole(Microsoft::Extensions::Logging::ILoggerFactory ^ factory, Microsoft::Extensions::Logging::LogLevel minLevel, bool includeScopes);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")]
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, Microsoft.Extensions.Logging.LogLevel minLevel, bool includeScopes);
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Logging.LogLevel * bool -> Microsoft.Extensions.Logging.ILoggerFactory
<Extension()>
Public Function AddConsole (factory As ILoggerFactory, minLevel As LogLevel, includeScopes As Boolean) As ILoggerFactory

매개 변수

factory
ILoggerFactory

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

minLevel
LogLevel

로깅할 최소 LogLevel입니다.The minimum LogLevel to be logged

includeScopes
Boolean

로그 범위 정보를 출력에 표시할지 여부를 나타내는 값입니다.A value which indicates whether log scope information should be displayed in the output.

반환

특성

AddConsole(ILoggerFactory, Func<String,LogLevel,Boolean>, Boolean)

경고

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

필터 함수에 정의된 대로 설정되는 콘솔 로거를 추가합니다.Adds a console logger that is enabled as defined by the filter function.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddConsole(Microsoft::Extensions::Logging::ILoggerFactory ^ factory, Func<System::String ^, Microsoft::Extensions::Logging::LogLevel, bool> ^ filter, bool includeScopes);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")]
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, Func<string,Microsoft.Extensions.Logging.LogLevel,bool> filter, bool includeScopes);
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * Func<string, Microsoft.Extensions.Logging.LogLevel, bool> * bool -> Microsoft.Extensions.Logging.ILoggerFactory
<Extension()>
Public Function AddConsole (factory As ILoggerFactory, filter As Func(Of String, LogLevel, Boolean), includeScopes As Boolean) As ILoggerFactory

매개 변수

factory
ILoggerFactory

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

filter
Func<String,LogLevel,Boolean>

로그에 적용할 범주 필터입니다.The category filter to apply to logs.

includeScopes
Boolean

로그 범위 정보를 출력에 표시할지 여부를 나타내는 값입니다.A value which indicates whether log scope information should be displayed in the output.

반환

특성

적용 대상