Class LoggerFactoryExtensions
Inherited Members
Namespace: Microsoft.Extensions.Logging
Assembly: Microsoft.Extensions.Logging.Abstractions.dll
Syntax
public static class LoggerFactoryExtensions
Methods
CreateLogger(ILoggerFactory, Type)
Declaration
public static ILogger CreateLogger(this ILoggerFactory factory, Type type)
Parameters
Type | Name | Description |
---|---|---|
ILoggerFactory | factory | |
Type | type |
Returns
Type | Description |
---|---|
ILogger |
CreateLogger<T>(ILoggerFactory)
Declaration
public static ILogger<T> CreateLogger<T>(this ILoggerFactory factory)
Parameters
Type | Name | Description |
---|---|---|
ILoggerFactory | factory |
Returns
Type | Description |
---|---|
ILogger<T> |
Type Parameters
Name | Description |
---|---|
T |