EventLogLoggerProvider Class

The provider for the Microsoft.Extensions.Logging.EventLog.EventLogLogger.

Namespace
Microsoft.Extensions.Logging.EventLog
Assemblies
  • Microsoft.Extensions.Logging.EventLog

Syntax

public class EventLogLoggerProvider : ILoggerProvider, IDisposable
class Microsoft.Extensions.Logging.EventLog.EventLogLoggerProvider

Constructors

EventLogLoggerProvider()

Initializes a new instance of the Microsoft.Extensions.Logging.EventLog.EventLogLoggerProvider class.

public EventLogLoggerProvider()
EventLogLoggerProvider(Microsoft.Extensions.Logging.EventLog.EventLogSettings)

Initializes a new instance of the Microsoft.Extensions.Logging.EventLog.EventLogLoggerProvider class.

Arguments:settings (Microsoft.Extensions.Logging.EventLog.EventLogSettings) – The Microsoft.Extensions.Logging.EventLog.EventLogSettings.
public EventLogLoggerProvider(EventLogSettings settings)

Methods

CreateLogger(System.String)
Return type:Microsoft.Extensions.Logging.ILogger
public ILogger CreateLogger(string name)
Dispose()
public void Dispose()