EventLogLoggerProvider 類別

定義

EventLogLogger 的提供者。The provider for the EventLogLogger.

public ref class EventLogLoggerProvider : IDisposable, Microsoft::Extensions::Logging::ILoggerProvider, Microsoft::Extensions::Logging::ISupportExternalScope
[Microsoft.Extensions.Logging.ProviderAlias("EventLog")]
public class EventLogLoggerProvider : IDisposable, Microsoft.Extensions.Logging.ILoggerProvider, Microsoft.Extensions.Logging.ISupportExternalScope
type EventLogLoggerProvider = class
    interface ILoggerProvider
    interface IDisposable
    interface ISupportExternalScope
Public Class EventLogLoggerProvider
Implements IDisposable, ILoggerProvider, ISupportExternalScope
繼承
EventLogLoggerProvider
屬性
實作

建構函式

EventLogLoggerProvider()

初始化 EventLogLoggerProvider 類別的新執行個體。Initializes a new instance of the EventLogLoggerProvider class.

EventLogLoggerProvider(EventLogSettings)

初始化 EventLogLoggerProvider 類別的新執行個體。Initializes a new instance of the EventLogLoggerProvider class.

EventLogLoggerProvider(IOptions<EventLogSettings>)

初始化 EventLogLoggerProvider 類別的新執行個體。Initializes a new instance of the EventLogLoggerProvider class.

方法

CreateLogger(String)
Dispose()
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 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
SetScopeProvider(IExternalScopeProvider)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於