ConsoleLoggerProvider Constructors

Definition

Overloads

ConsoleLoggerProvider(IConsoleLoggerSettings)
Obsolete.
ConsoleLoggerProvider(IOptionsMonitor<ConsoleLoggerOptions>)

Creates an instance of ConsoleLoggerProvider.

ConsoleLoggerProvider(IOptionsMonitor<ConsoleLoggerOptions>, IEnumerable<ConsoleFormatter>)

Creates an instance of ConsoleLoggerProvider.

ConsoleLoggerProvider(Func<String,LogLevel,Boolean>, Boolean)
Obsolete.
ConsoleLoggerProvider(Func<String,LogLevel,Boolean>, Boolean, Boolean)
Obsolete.

ConsoleLoggerProvider(IConsoleLoggerSettings)

Caution

This method is obsolete and will be removed in a future version. The recommended alternative is using LoggerFactory to configure filtering and ConsoleLoggerOptions to configure logging options

public:
 ConsoleLoggerProvider(Microsoft::Extensions::Logging::Console::IConsoleLoggerSettings ^ settings);
public ConsoleLoggerProvider (Microsoft.Extensions.Logging.Console.IConsoleLoggerSettings settings);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is using LoggerFactory to configure filtering and ConsoleLoggerOptions to configure logging options")]
public ConsoleLoggerProvider (Microsoft.Extensions.Logging.Console.IConsoleLoggerSettings settings);
new Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider : Microsoft.Extensions.Logging.Console.IConsoleLoggerSettings -> Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is using LoggerFactory to configure filtering and ConsoleLoggerOptions to configure logging options")>]
new Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider : Microsoft.Extensions.Logging.Console.IConsoleLoggerSettings -> Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider
Public Sub New (settings As IConsoleLoggerSettings)

Parameters

Attributes

Applies to

ConsoleLoggerProvider(IOptionsMonitor<ConsoleLoggerOptions>)

Creates an instance of ConsoleLoggerProvider.

public:
 ConsoleLoggerProvider(Microsoft::Extensions::Options::IOptionsMonitor<Microsoft::Extensions::Logging::Console::ConsoleLoggerOptions ^> ^ options);
public ConsoleLoggerProvider (Microsoft.Extensions.Options.IOptionsMonitor<Microsoft.Extensions.Logging.Console.ConsoleLoggerOptions> options);
new Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider : Microsoft.Extensions.Options.IOptionsMonitor<Microsoft.Extensions.Logging.Console.ConsoleLoggerOptions> -> Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider
Public Sub New (options As IOptionsMonitor(Of ConsoleLoggerOptions))

Parameters

options
IOptionsMonitor<ConsoleLoggerOptions>

The options to create ConsoleLogger instances with.

Applies to

ConsoleLoggerProvider(IOptionsMonitor<ConsoleLoggerOptions>, IEnumerable<ConsoleFormatter>)

Creates an instance of ConsoleLoggerProvider.

public:
 ConsoleLoggerProvider(Microsoft::Extensions::Options::IOptionsMonitor<Microsoft::Extensions::Logging::Console::ConsoleLoggerOptions ^> ^ options, System::Collections::Generic::IEnumerable<Microsoft::Extensions::Logging::Console::ConsoleFormatter ^> ^ formatters);
public ConsoleLoggerProvider (Microsoft.Extensions.Options.IOptionsMonitor<Microsoft.Extensions.Logging.Console.ConsoleLoggerOptions> options, System.Collections.Generic.IEnumerable<Microsoft.Extensions.Logging.Console.ConsoleFormatter> formatters);
public ConsoleLoggerProvider (Microsoft.Extensions.Options.IOptionsMonitor<Microsoft.Extensions.Logging.Console.ConsoleLoggerOptions> options, System.Collections.Generic.IEnumerable<Microsoft.Extensions.Logging.Console.ConsoleFormatter>? formatters);
new Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider : Microsoft.Extensions.Options.IOptionsMonitor<Microsoft.Extensions.Logging.Console.ConsoleLoggerOptions> * seq<Microsoft.Extensions.Logging.Console.ConsoleFormatter> -> Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider
Public Sub New (options As IOptionsMonitor(Of ConsoleLoggerOptions), formatters As IEnumerable(Of ConsoleFormatter))

Parameters

options
IOptionsMonitor<ConsoleLoggerOptions>

The options to create ConsoleLogger instances with.

formatters
IEnumerable<ConsoleFormatter>

Log formatters added for ConsoleLogger insteaces.

Applies to

ConsoleLoggerProvider(Func<String,LogLevel,Boolean>, Boolean)

Caution

This method is obsolete and will be removed in a future version. The recommended alternative is using LoggerFactory to configure filtering and ConsoleLoggerOptions to configure logging options.

public:
 ConsoleLoggerProvider(Func<System::String ^, Microsoft::Extensions::Logging::LogLevel, bool> ^ filter, bool includeScopes);
public ConsoleLoggerProvider (Func<string,Microsoft.Extensions.Logging.LogLevel,bool> filter, bool includeScopes);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is using LoggerFactory to configure filtering and ConsoleLoggerOptions to configure logging options.")]
public ConsoleLoggerProvider (Func<string,Microsoft.Extensions.Logging.LogLevel,bool> filter, bool includeScopes);
new Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider : Func<string, Microsoft.Extensions.Logging.LogLevel, bool> * bool -> Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is using LoggerFactory to configure filtering and ConsoleLoggerOptions to configure logging options.")>]
new Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider : Func<string, Microsoft.Extensions.Logging.LogLevel, bool> * bool -> Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider
Public Sub New (filter As Func(Of String, LogLevel, Boolean), includeScopes As Boolean)

Parameters

includeScopes
Boolean
Attributes

Applies to

ConsoleLoggerProvider(Func<String,LogLevel,Boolean>, Boolean, Boolean)

Caution

This method is obsolete and will be removed in a future version. The recommended alternative is using LoggerFactory to configure filtering and ConsoleLoggerOptions to configure logging options.

public:
 ConsoleLoggerProvider(Func<System::String ^, Microsoft::Extensions::Logging::LogLevel, bool> ^ filter, bool includeScopes, bool disableColors);
public ConsoleLoggerProvider (Func<string,Microsoft.Extensions.Logging.LogLevel,bool> filter, bool includeScopes, bool disableColors);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is using LoggerFactory to configure filtering and ConsoleLoggerOptions to configure logging options.")]
public ConsoleLoggerProvider (Func<string,Microsoft.Extensions.Logging.LogLevel,bool> filter, bool includeScopes, bool disableColors);
new Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider : Func<string, Microsoft.Extensions.Logging.LogLevel, bool> * bool * bool -> Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is using LoggerFactory to configure filtering and ConsoleLoggerOptions to configure logging options.")>]
new Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider : Func<string, Microsoft.Extensions.Logging.LogLevel, bool> * bool * bool -> Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider
Public Sub New (filter As Func(Of String, LogLevel, Boolean), includeScopes As Boolean, disableColors As Boolean)

Parameters

includeScopes
Boolean
disableColors
Boolean
Attributes

Applies to