ConsoleLoggerExtensions.AddSystemdConsole Method
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.
AddSystemdConsole(ILoggingBuilder) |
Add a console log formatter named 'systemd' to the factory with default properties. |
AddSystemdConsole(ILoggingBuilder, Action<ConsoleFormatterOptions>) |
Add and configure a console log formatter named 'systemd' to the factory. |
- Source:
- ConsoleLoggerExtensions.cs
- Source:
- ConsoleLoggerExtensions.cs
- Source:
- ConsoleLoggerExtensions.cs
Add a console log formatter named 'systemd' to the factory with default properties.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddSystemdConsole(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddSystemdConsole (this Microsoft.Extensions.Logging.ILoggingBuilder builder);
static member AddSystemdConsole : Microsoft.Extensions.Logging.ILoggingBuilder -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function AddSystemdConsole (builder As ILoggingBuilder) As ILoggingBuilder
Parameters
- builder
- ILoggingBuilder
The ILoggingBuilder to use.
Returns
The current logging builder instance so that additional calls can be chained.
Applies to
.NET 9 (package-provided) og andre versjoner
Produkt | Versjoner |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
- Source:
- ConsoleLoggerExtensions.cs
- Source:
- ConsoleLoggerExtensions.cs
- Source:
- ConsoleLoggerExtensions.cs
Add and configure a console log formatter named 'systemd' to the factory.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddSystemdConsole(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, Action<Microsoft::Extensions::Logging::Console::ConsoleFormatterOptions ^> ^ configure);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddSystemdConsole (this Microsoft.Extensions.Logging.ILoggingBuilder builder, Action<Microsoft.Extensions.Logging.Console.ConsoleFormatterOptions> configure);
static member AddSystemdConsole : Microsoft.Extensions.Logging.ILoggingBuilder * Action<Microsoft.Extensions.Logging.Console.ConsoleFormatterOptions> -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function AddSystemdConsole (builder As ILoggingBuilder, configure As Action(Of ConsoleFormatterOptions)) As ILoggingBuilder
Parameters
- builder
- ILoggingBuilder
The ILoggingBuilder to use.
- configure
- Action<ConsoleFormatterOptions>
A delegate to configure the Microsoft.Extensions.Logging.Console.ConsoleLogger options for the built-in systemd log formatter.
Returns
The current logging builder instance so that additional calls can be chained.
Applies to
.NET 9 (package-provided) og andre versjoner
Produkt | Versjoner |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
.NET-tilbakemelding
.NET er et åpen kilde-prosjekt. Velg en kobling for å gi tilbakemelding: