EventLoggerFactoryExtensions EventLoggerFactoryExtensions Class

Extension methods for the ILoggerFactory class.

Syntax

Declaration

public static class EventLoggerFactoryExtensionsPublic Module EventLoggerFactoryExtensions

Inheritance Hierarchy

  • System.Object
    System.Object
  • EventLoggerFactoryExtensions
    EventLoggerFactoryExtensions

Inherited Members

ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Methods summary

Adds an event logger that is enabled for LogLevel.Information or higher.
Adds an event logger. Use settings to enable logging for specific LogLevels.
Adds an event logger that is enabled for LogLevels of minLevel or higher.

Methods

  • AddEventLog(ILoggerFactory)
    AddEventLog(ILoggerFactory)
    Adds an event logger that is enabled for LogLevel.Information or higher.
    public static ILoggerFactory AddEventLog(this ILoggerFactory factory)<ExtensionAttribute>
    Public Shared Function AddEventLog(factory As ILoggerFactory) As ILoggerFactory

    Parameters

    Returns

  • AddEventLog(ILoggerFactory, EventLogSettings)
    AddEventLog(ILoggerFactory, EventLogSettings)
    Adds an event logger. Use settings to enable logging for specific LogLevels.
    public static ILoggerFactory AddEventLog(this ILoggerFactory factory, EventLogSettings settings)<ExtensionAttribute>
    Public Shared Function AddEventLog(factory As ILoggerFactory, settings As EventLogSettings) As ILoggerFactory

    Parameters

    Returns

  • AddEventLog(ILoggerFactory, LogLevel)
    AddEventLog(ILoggerFactory, LogLevel)
    Adds an event logger that is enabled for LogLevels of minLevel or higher.
    public static ILoggerFactory AddEventLog(this ILoggerFactory factory, LogLevel minLevel)<ExtensionAttribute>
    Public Shared Function AddEventLog(factory As ILoggerFactory, minLevel As LogLevel) As ILoggerFactory

    Parameters

    Returns

Details

Assembly

Microsoft.Extensions.Logging.EventLog.dll