ConsoleLoggerExtensions Class
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.
Provides extension methods for the ILoggingBuilder and ILoggerProviderConfiguration<T> classes.
public ref class ConsoleLoggerExtensions abstract sealed
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static class ConsoleLoggerExtensions
public static class ConsoleLoggerExtensions
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
type ConsoleLoggerExtensions = class
type ConsoleLoggerExtensions = class
Public Module ConsoleLoggerExtensions
- Inheritance
-
ConsoleLoggerExtensions
- Attributes
Methods
AddConsole(ILoggingBuilder) |
Adds a console logger named 'Console' to the factory. |
AddConsole(ILoggingBuilder, Action<ConsoleLoggerOptions>) |
Adds a console logger named 'Console' to the factory. |
AddConsoleFormatter<TFormatter,TOptions>(ILoggingBuilder) |
Adds a custom console logger formatter. |
AddConsoleFormatter<TFormatter,TOptions>(ILoggingBuilder, Action<TOptions>) |
Adds a custom console logger formatter to be configured with the specified options. |
AddJsonConsole(ILoggingBuilder) |
Adds a console log formatter named 'json' to the factory with default properties. |
AddJsonConsole(ILoggingBuilder, Action<JsonConsoleFormatterOptions>) |
Adds a console log formatter named 'json' to the factory configured with the specified Json console formatter options. |
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. |
AddSystemdConsole(ILoggingBuilder) |
Adds a console log formatter named 'systemd' to the factory with default properties. |
AddSystemdConsole(ILoggingBuilder, Action<ConsoleFormatterOptions>) |
Adds a console log formatter named 'systemd' to the factory configured with the specified console formatter options. |