ConsoleLoggerExtensions.AddConsole Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddConsole(ILoggingBuilder, Action<ConsoleLoggerOptions>) |
Adds a console logger named 'Console' to the factory. |
AddConsole(ILoggingBuilder) |
Adds a console logger named 'Console' to the factory. |
AddConsole(ILoggingBuilder, Action<ConsoleLoggerOptions>)
- Source:
- ConsoleLoggerExtensions.cs
- Source:
- ConsoleLoggerExtensions.cs
- Source:
- ConsoleLoggerExtensions.cs
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
Parameters
- builder
- ILoggingBuilder
The ILoggingBuilder to use.
- configure
- Action<ConsoleLoggerOptions>
A delegate to configure the Microsoft.Extensions.Logging.Console.ConsoleLogger.
Returns
Applies to
AddConsole(ILoggingBuilder)
- Source:
- ConsoleLoggerExtensions.cs
- Source:
- ConsoleLoggerExtensions.cs
- Source:
- ConsoleLoggerExtensions.cs
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
Parameters
- builder
- ILoggingBuilder
The ILoggingBuilder to use.
Returns
Applies to
Sodelujte z nami v storitvi GitHub
Vir za to vsebino najdete v storitvi GitHub, kjer lahko tudi ustvarite in pregledate težave in zahtevke za uveljavitev sprememb. Če želite več informacij, glejte naš vodnik za sodelavce.