FilterLoggerFactory 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.
This API supports the .NET infrastructure and is not intended to be used directly from your code.
public ref class FilterLoggerFactory : IDisposable, Microsoft::Extensions::Logging::ILoggerFactory
public class FilterLoggerFactory : IDisposable, Microsoft.Extensions.Logging.ILoggerFactory
type FilterLoggerFactory = class
interface ILoggerFactory
interface IDisposable
Public Class FilterLoggerFactory
Implements IDisposable, ILoggerFactory
- Inheritance
-
FilterLoggerFactory
- Implements
Constructors
FilterLoggerFactory(ILoggerFactory, IFilterLoggerSettings) |
This API supports the .NET infrastructure and is not intended to be used directly from your code. |
Methods
AddProvider(ILoggerProvider) |
Adds a provider to the logging system. |
CreateLogger(String) |
Creates a new ILogger instance. |
Dispose() |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
Extension Methods
AddAzureWebAppDiagnostics(ILoggerFactory) |
Obsolete.
Adds an Azure Web Apps diagnostics logger. |
AddAzureWebAppDiagnostics(ILoggerFactory, AzureAppServicesDiagnosticsSettings) |
Obsolete.
Adds an Azure Web Apps diagnostics logger. |
WithFilter(ILoggerFactory, IFilterLoggerSettings) |
Registers a wrapper logger which provides a common way to filter log messages across all registered ILoggerProviders. |
CreateLogger(ILoggerFactory, Type) |
Creates a new ILogger instance using the full name of the given |
CreateLogger<T>(ILoggerFactory) |
Creates a new ILogger instance using the full name of the given type. |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for