DebugLoggerProvider 类

定义

DebugLogger 的提供程序。The provider for the DebugLogger.

public ref class DebugLoggerProvider : IDisposable, Microsoft::Extensions::Logging::ILoggerProvider
public class DebugLoggerProvider : IDisposable, Microsoft.Extensions.Logging.ILoggerProvider
[Microsoft.Extensions.Logging.ProviderAlias("Debug")]
public class DebugLoggerProvider : IDisposable, Microsoft.Extensions.Logging.ILoggerProvider
type DebugLoggerProvider = class
    interface ILoggerProvider
    interface IDisposable
[<Microsoft.Extensions.Logging.ProviderAlias("Debug")>]
type DebugLoggerProvider = class
    interface ILoggerProvider
    interface IDisposable
Public Class DebugLoggerProvider
Implements IDisposable, ILoggerProvider
继承
DebugLoggerProvider
属性
实现

构造函数

DebugLoggerProvider()
DebugLoggerProvider(Func<String,LogLevel,Boolean>)
已过时。

初始化 DebugLoggerProvider 类的新实例。Initializes a new instance of the DebugLoggerProvider class.

方法

CreateLogger(String)

创建一个新的 ILogger 实例。Creates a new ILogger instance.

Dispose()

执行与释放或重置非托管资源关联的应用程序定义的任务。Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于