ILoggerFactory Interface
Defines a factory object for creating instances of Logger.
public interface ILoggerFactory : IDisposable
Methods
CreateLogger(string)
Creates a new Logger with the given category name.
Logger? CreateLogger(string categoryName)
Parameter | Type | Description |
---|---|---|
categoryName | string | The category name. |
Returns
CreateLogger(Type)
Logger? CreateLogger(Type categoryType)
Parameter | Type | Description |
---|---|---|
categoryType | Type | The type whose full name will be used as the category. |
Returns
CreateLogger<TCategory>()
Logger? CreateLogger<TCategory>()
- Type Parameters:
-
TCategory
-The type whose full name will be used as the category.