ConsoleLoggerExtensions.AddSimpleConsole 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
AddSimpleConsole(ILoggingBuilder) |
Adds the default console log formatter named 'simple' to the factory with default properties. |
AddSimpleConsole(ILoggingBuilder, Action<SimpleConsoleFormatterOptions>) |
Adds a console log formatter named 'simple' to the factory configured with the specified simple console formatter options. |
AddSimpleConsole(ILoggingBuilder)
- Source:
- ConsoleLoggerExtensions.cs
- Source:
- ConsoleLoggerExtensions.cs
- Source:
- ConsoleLoggerExtensions.cs
- Source:
- ConsoleLoggerExtensions.cs
Adds the default console log formatter named 'simple' to the factory with default properties.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddSimpleConsole(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddSimpleConsole (this Microsoft.Extensions.Logging.ILoggingBuilder builder);
static member AddSimpleConsole : Microsoft.Extensions.Logging.ILoggingBuilder -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function AddSimpleConsole (builder As ILoggingBuilder) As ILoggingBuilder
Parameters
- builder
- ILoggingBuilder
The current logging builder instance to use.
Returns
The current logging builder instance so that additional calls can be chained.
Applies to
AddSimpleConsole(ILoggingBuilder, Action<SimpleConsoleFormatterOptions>)
- Source:
- ConsoleLoggerExtensions.cs
- Source:
- ConsoleLoggerExtensions.cs
- Source:
- ConsoleLoggerExtensions.cs
- Source:
- ConsoleLoggerExtensions.cs
Adds a console log formatter named 'simple' to the factory configured with the specified simple console formatter options.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddSimpleConsole(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, Action<Microsoft::Extensions::Logging::Console::SimpleConsoleFormatterOptions ^> ^ configure);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddSimpleConsole (this Microsoft.Extensions.Logging.ILoggingBuilder builder, Action<Microsoft.Extensions.Logging.Console.SimpleConsoleFormatterOptions> configure);
static member AddSimpleConsole : Microsoft.Extensions.Logging.ILoggingBuilder * Action<Microsoft.Extensions.Logging.Console.SimpleConsoleFormatterOptions> -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function AddSimpleConsole (builder As ILoggingBuilder, configure As Action(Of SimpleConsoleFormatterOptions)) As ILoggingBuilder
Parameters
- builder
- ILoggingBuilder
The current logging builder instance to use.
- configure
- Action<SimpleConsoleFormatterOptions>
A delegate to configure the console logger options for the built-in default log formatter.
Returns
The current logging builder instance so that additional calls can be chained.