ConsoleLoggerExtensions.AddConsole Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
AddConsole(ILoggingBuilder, Action<ConsoleLoggerOptions>) |
Agrega un registrador de consola denominado "Console" al generador. |
AddConsole(ILoggingBuilder) |
Agrega un registrador de consola denominado "Console" al generador. |
AddConsole(ILoggingBuilder, Action<ConsoleLoggerOptions>)
- Source:
- ConsoleLoggerExtensions.cs
- Source:
- ConsoleLoggerExtensions.cs
Agrega un registrador de consola denominado "Console" al generador.
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
Parámetros
- builder
- ILoggingBuilder
Objeto ILoggingBuilder que se va a usar.
- configure
- Action<ConsoleLoggerOptions>
Un delegado para configurar la instancia de Microsoft.Extensions.Logging.Console.ConsoleLogger.
Devoluciones
Se aplica a
AddConsole(ILoggingBuilder)
- Source:
- ConsoleLoggerExtensions.cs
- Source:
- ConsoleLoggerExtensions.cs
Agrega un registrador de consola denominado "Console" al generador.
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
Parámetros
- builder
- ILoggingBuilder
Objeto ILoggingBuilder que se va a usar.