LoggerFactoryExtensions.CreateLogger Method
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
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. |
CreateLogger(ILoggerFactory, Type)
- Source:
- LoggerFactoryExtensions.cs
- Source:
- LoggerFactoryExtensions.cs
- Source:
- LoggerFactoryExtensions.cs
- Source:
- LoggerFactoryExtensions.cs
- Source:
- LoggerFactoryExtensions.cs
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
Parameters
- factory
- ILoggerFactory
The factory.
- type
- Type
The type.
Returns
The ILogger that was created.
Applies to
CreateLogger<T>(ILoggerFactory)
- Source:
- LoggerFactoryExtensions.cs
- Source:
- LoggerFactoryExtensions.cs
- Source:
- LoggerFactoryExtensions.cs
- Source:
- LoggerFactoryExtensions.cs
- Source:
- LoggerFactoryExtensions.cs
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)
Type Parameters
- T
The type.
Parameters
- factory
- ILoggerFactory
The factory.
Returns
ILogger<T>
The ILogger that was created.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.