다음을 통해 공유


ConsoleLoggerExtensions.AddConsole 메서드

정의

오버로드

AddConsole(ILoggingBuilder, Action<ConsoleLoggerOptions>)

‘Console’이라는 콘솔 로거를 팩터리에 추가합니다.

AddConsole(ILoggingBuilder)

‘Console’이라는 콘솔 로거를 팩터리에 추가합니다.

AddConsole(ILoggingBuilder, Action<ConsoleLoggerOptions>)

Source:
ConsoleLoggerExtensions.cs
Source:
ConsoleLoggerExtensions.cs
Source:
ConsoleLoggerExtensions.cs

‘Console’이라는 콘솔 로거를 팩터리에 추가합니다.

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입니다.

configure
Action<ConsoleLoggerOptions>

Microsoft.Extensions.Logging.Console.ConsoleLogger를 구성하기 위한 대리자입니다.

반환

적용 대상

AddConsole(ILoggingBuilder)

Source:
ConsoleLoggerExtensions.cs
Source:
ConsoleLoggerExtensions.cs
Source:
ConsoleLoggerExtensions.cs

‘Console’이라는 콘솔 로거를 팩터리에 추가합니다.

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입니다.

반환

적용 대상