LoggerFactoryExtensions.CreateLogger Método

Definição

Sobrecargas

CreateLogger(ILoggerFactory, Type)

Cria uma nova instância de ILogger usando o nome completo do type fornecido.Creates a new ILogger instance using the full name of the given type.

CreateLogger<T>(ILoggerFactory)

Cria uma nova instância de ILogger usando o nome completo do tipo fornecido.Creates a new ILogger instance using the full name of the given type.

CreateLogger(ILoggerFactory, Type)

Cria uma nova instância de ILogger usando o nome completo do type fornecido.Creates a new ILogger instance using the full name of the given type.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILogger ^ CreateLogger(Microsoft::Extensions::Logging::ILoggerFactory ^ factory, Type ^ type);
public static Microsoft.Extensions.Logging.ILogger CreateLogger (this Microsoft.Extensions.Logging.ILoggerFactory factory, Type type);
static member CreateLogger : Microsoft.Extensions.Logging.ILoggerFactory * Type -> Microsoft.Extensions.Logging.ILogger
<Extension()>
Public Function CreateLogger (factory As ILoggerFactory, type As Type) As ILogger

Parâmetros

factory
ILoggerFactory

O alocador.The factory.

type
Type

O tipo.The type.

Retornos

ILogger

Aplica-se a

CreateLogger<T>(ILoggerFactory)

Cria uma nova instância de ILogger usando o nome completo do tipo fornecido.Creates a new ILogger instance using the full name of the given type.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILogger<T> ^ CreateLogger(Microsoft::Extensions::Logging::ILoggerFactory ^ factory);
public static Microsoft.Extensions.Logging.ILogger<T> CreateLogger<T> (this Microsoft.Extensions.Logging.ILoggerFactory factory);
static member CreateLogger : Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.Extensions.Logging.ILogger<'T>
<Extension()>
Public Function CreateLogger(Of T) (factory As ILoggerFactory) As ILogger(Of T)

Parâmetros de tipo

T

O tipo.The type.

Parâmetros

factory
ILoggerFactory

O alocador.The factory.

Retornos

ILogger<T>

O ILogger criado.The ILogger that was created.

Aplica-se a