LoggerFactoryExtensions 类

定义

适用于常见方案的 ILoggerFactory 扩展方法。ILoggerFactory extension methods for common scenarios.

public ref class LoggerFactoryExtensions abstract sealed
public static class LoggerFactoryExtensions
type LoggerFactoryExtensions = class
Public Module LoggerFactoryExtensions
继承
LoggerFactoryExtensions

方法

CreateLogger(ILoggerFactory, Type)

使用给定 type 的全名创建一个新的 ILogger 实例。Creates a new ILogger instance using the full name of the given type.

CreateLogger<T>(ILoggerFactory)

使用给定类型的全名创建一个新的 ILogger 实例。Creates a new ILogger instance using the full name of the given type.

适用于