LoggerFactory Constructors
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
LoggerFactory() |
Creates a new LoggerFactory instance. |
LoggerFactory(IEnumerable<ILoggerProvider>) |
Creates a new LoggerFactory instance. |
LoggerFactory(IEnumerable<ILoggerProvider>, LoggerFilterOptions) |
Creates a new LoggerFactory instance. |
LoggerFactory(IEnumerable<ILoggerProvider>, IOptionsMonitor<LoggerFilterOptions>) |
Creates a new LoggerFactory instance. |
LoggerFactory(IEnumerable<ILoggerProvider>, IOptionsMonitor<LoggerFilterOptions>, IOptions<LoggerFactoryOptions>) |
Creates a new LoggerFactory instance. |
LoggerFactory(IEnumerable<ILoggerProvider>, IOptionsMonitor<LoggerFilterOptions>, IOptions<LoggerFactoryOptions>, IExternalScopeProvider) |
Creates a new LoggerFactory instance. |
LoggerFactory()
- Source:
- LoggerFactory.cs
- Source:
- LoggerFactory.cs
- Source:
- LoggerFactory.cs
Creates a new LoggerFactory instance.
public:
LoggerFactory();
public LoggerFactory ();
Public Sub New ()
Applies to
LoggerFactory(IEnumerable<ILoggerProvider>)
- Source:
- LoggerFactory.cs
- Source:
- LoggerFactory.cs
- Source:
- LoggerFactory.cs
Creates a new LoggerFactory instance.
public:
LoggerFactory(System::Collections::Generic::IEnumerable<Microsoft::Extensions::Logging::ILoggerProvider ^> ^ providers);
public LoggerFactory (System.Collections.Generic.IEnumerable<Microsoft.Extensions.Logging.ILoggerProvider> providers);
new Microsoft.Extensions.Logging.LoggerFactory : seq<Microsoft.Extensions.Logging.ILoggerProvider> -> Microsoft.Extensions.Logging.LoggerFactory
Public Sub New (providers As IEnumerable(Of ILoggerProvider))
Parameters
- providers
- IEnumerable<ILoggerProvider>
The providers to use in producing ILogger instances.
Applies to
LoggerFactory(IEnumerable<ILoggerProvider>, LoggerFilterOptions)
- Source:
- LoggerFactory.cs
- Source:
- LoggerFactory.cs
- Source:
- LoggerFactory.cs
Creates a new LoggerFactory instance.
public:
LoggerFactory(System::Collections::Generic::IEnumerable<Microsoft::Extensions::Logging::ILoggerProvider ^> ^ providers, Microsoft::Extensions::Logging::LoggerFilterOptions ^ filterOptions);
public LoggerFactory (System.Collections.Generic.IEnumerable<Microsoft.Extensions.Logging.ILoggerProvider> providers, Microsoft.Extensions.Logging.LoggerFilterOptions filterOptions);
new Microsoft.Extensions.Logging.LoggerFactory : seq<Microsoft.Extensions.Logging.ILoggerProvider> * Microsoft.Extensions.Logging.LoggerFilterOptions -> Microsoft.Extensions.Logging.LoggerFactory
Public Sub New (providers As IEnumerable(Of ILoggerProvider), filterOptions As LoggerFilterOptions)
Parameters
- providers
- IEnumerable<ILoggerProvider>
The providers to use in producing ILogger instances.
- filterOptions
- LoggerFilterOptions
The filter options to use.
Applies to
LoggerFactory(IEnumerable<ILoggerProvider>, IOptionsMonitor<LoggerFilterOptions>)
- Source:
- LoggerFactory.cs
- Source:
- LoggerFactory.cs
- Source:
- LoggerFactory.cs
Creates a new LoggerFactory instance.
public:
LoggerFactory(System::Collections::Generic::IEnumerable<Microsoft::Extensions::Logging::ILoggerProvider ^> ^ providers, Microsoft::Extensions::Options::IOptionsMonitor<Microsoft::Extensions::Logging::LoggerFilterOptions ^> ^ filterOption);
public LoggerFactory (System.Collections.Generic.IEnumerable<Microsoft.Extensions.Logging.ILoggerProvider> providers, Microsoft.Extensions.Options.IOptionsMonitor<Microsoft.Extensions.Logging.LoggerFilterOptions> filterOption);
new Microsoft.Extensions.Logging.LoggerFactory : seq<Microsoft.Extensions.Logging.ILoggerProvider> * Microsoft.Extensions.Options.IOptionsMonitor<Microsoft.Extensions.Logging.LoggerFilterOptions> -> Microsoft.Extensions.Logging.LoggerFactory
Public Sub New (providers As IEnumerable(Of ILoggerProvider), filterOption As IOptionsMonitor(Of LoggerFilterOptions))
Parameters
- providers
- IEnumerable<ILoggerProvider>
The providers to use in producing ILogger instances.
- filterOption
- IOptionsMonitor<LoggerFilterOptions>
The filter option to use.
Applies to
LoggerFactory(IEnumerable<ILoggerProvider>, IOptionsMonitor<LoggerFilterOptions>, IOptions<LoggerFactoryOptions>)
- Source:
- LoggerFactory.cs
- Source:
- LoggerFactory.cs
- Source:
- LoggerFactory.cs
Creates a new LoggerFactory instance.
public:
LoggerFactory(System::Collections::Generic::IEnumerable<Microsoft::Extensions::Logging::ILoggerProvider ^> ^ providers, Microsoft::Extensions::Options::IOptionsMonitor<Microsoft::Extensions::Logging::LoggerFilterOptions ^> ^ filterOption, Microsoft::Extensions::Options::IOptions<Microsoft::Extensions::Logging::LoggerFactoryOptions ^> ^ options);
public LoggerFactory (System.Collections.Generic.IEnumerable<Microsoft.Extensions.Logging.ILoggerProvider> providers, Microsoft.Extensions.Options.IOptionsMonitor<Microsoft.Extensions.Logging.LoggerFilterOptions> filterOption, Microsoft.Extensions.Options.IOptions<Microsoft.Extensions.Logging.LoggerFactoryOptions>? options);
new Microsoft.Extensions.Logging.LoggerFactory : seq<Microsoft.Extensions.Logging.ILoggerProvider> * Microsoft.Extensions.Options.IOptionsMonitor<Microsoft.Extensions.Logging.LoggerFilterOptions> * Microsoft.Extensions.Options.IOptions<Microsoft.Extensions.Logging.LoggerFactoryOptions> -> Microsoft.Extensions.Logging.LoggerFactory
Public Sub New (providers As IEnumerable(Of ILoggerProvider), filterOption As IOptionsMonitor(Of LoggerFilterOptions), options As IOptions(Of LoggerFactoryOptions))
Parameters
- providers
- IEnumerable<ILoggerProvider>
The providers to use in producing ILogger instances.
- filterOption
- IOptionsMonitor<LoggerFilterOptions>
The filter option to use.
- options
- IOptions<LoggerFactoryOptions>
The LoggerFactoryOptions.
Applies to
LoggerFactory(IEnumerable<ILoggerProvider>, IOptionsMonitor<LoggerFilterOptions>, IOptions<LoggerFactoryOptions>, IExternalScopeProvider)
- Source:
- LoggerFactory.cs
- Source:
- LoggerFactory.cs
- Source:
- LoggerFactory.cs
Creates a new LoggerFactory instance.
public LoggerFactory (System.Collections.Generic.IEnumerable<Microsoft.Extensions.Logging.ILoggerProvider> providers, Microsoft.Extensions.Options.IOptionsMonitor<Microsoft.Extensions.Logging.LoggerFilterOptions> filterOption, Microsoft.Extensions.Options.IOptions<Microsoft.Extensions.Logging.LoggerFactoryOptions>? options = default, Microsoft.Extensions.Logging.IExternalScopeProvider? scopeProvider = default);
new Microsoft.Extensions.Logging.LoggerFactory : seq<Microsoft.Extensions.Logging.ILoggerProvider> * Microsoft.Extensions.Options.IOptionsMonitor<Microsoft.Extensions.Logging.LoggerFilterOptions> * Microsoft.Extensions.Options.IOptions<Microsoft.Extensions.Logging.LoggerFactoryOptions> * Microsoft.Extensions.Logging.IExternalScopeProvider -> Microsoft.Extensions.Logging.LoggerFactory
Public Sub New (providers As IEnumerable(Of ILoggerProvider), filterOption As IOptionsMonitor(Of LoggerFilterOptions), Optional options As IOptions(Of LoggerFactoryOptions) = Nothing, Optional scopeProvider As IExternalScopeProvider = Nothing)
Parameters
- providers
- IEnumerable<ILoggerProvider>
The providers to use in producing ILogger instances.
- filterOption
- IOptionsMonitor<LoggerFilterOptions>
The filter option to use.
- options
- IOptions<LoggerFactoryOptions>
The LoggerFactoryOptions.
- scopeProvider
- IExternalScopeProvider