EventLogLogger Class

Definition

Caution

This type is obsolete and will be removed in a future version. The recommended alternative is using EventLogLoggerProvider to construct loggers.

A logger that writes messages to Windows Event Log.

public ref class EventLogLogger : Microsoft::Extensions::Logging::ILogger
public class EventLogLogger : Microsoft.Extensions.Logging.ILogger
[System.Obsolete("This type is obsolete and will be removed in a future version. The recommended alternative is using EventLogLoggerProvider to construct loggers.")]
public class EventLogLogger : Microsoft.Extensions.Logging.ILogger
type EventLogLogger = class
    interface ILogger
[<System.Obsolete("This type is obsolete and will be removed in a future version. The recommended alternative is using EventLogLoggerProvider to construct loggers.")>]
type EventLogLogger = class
    interface ILogger
Public Class EventLogLogger
Implements ILogger
Inheritance
EventLogLogger
Attributes
Implements

Constructors

EventLogLogger(String)

Initializes a new instance of the EventLogLogger class.

EventLogLogger(String, EventLogSettings)

Initializes a new instance of the EventLogLogger class.

EventLogLogger(String, EventLogSettings, IExternalScopeProvider)

Initializes a new instance of the EventLogLogger class.

Properties

EventLog

Gets the event log.

Methods

BeginScope<TState>(TState)

Begins a logical operation scope.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
IsEnabled(LogLevel)

Checks if the given logLevel is enabled.

Log<TState>(LogLevel, EventId, TState, Exception, Func<TState,Exception,String>)

Writes a log entry.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Extension Methods

BeginScope(ILogger, String, Object[])

Formats the message and creates a scope.

Log(ILogger, LogLevel, EventId, Exception, String, Object[])

Formats and writes a log message at the specified log level.

Log(ILogger, LogLevel, EventId, String, Object[])

Formats and writes a log message at the specified log level.

Log(ILogger, LogLevel, Exception, String, Object[])

Formats and writes a log message at the specified log level.

Log(ILogger, LogLevel, String, Object[])

Formats and writes a log message at the specified log level.

LogCritical(ILogger, EventId, Exception, String, Object[])

Formats and writes a critical log message.

LogCritical(ILogger, EventId, String, Object[])

Formats and writes a critical log message.

LogCritical(ILogger, Exception, String, Object[])

Formats and writes a critical log message.

LogCritical(ILogger, String, Object[])

Formats and writes a critical log message.

LogDebug(ILogger, EventId, Exception, String, Object[])

Formats and writes a debug log message.

LogDebug(ILogger, EventId, String, Object[])

Formats and writes a debug log message.

LogDebug(ILogger, Exception, String, Object[])

Formats and writes a debug log message.

LogDebug(ILogger, String, Object[])

Formats and writes a debug log message.

LogError(ILogger, EventId, Exception, String, Object[])

Formats and writes an error log message.

LogError(ILogger, EventId, String, Object[])

Formats and writes an error log message.

LogError(ILogger, Exception, String, Object[])

Formats and writes an error log message.

LogError(ILogger, String, Object[])

Formats and writes an error log message.

LogInformation(ILogger, EventId, Exception, String, Object[])

Formats and writes an informational log message.

LogInformation(ILogger, EventId, String, Object[])

Formats and writes an informational log message.

LogInformation(ILogger, Exception, String, Object[])

Formats and writes an informational log message.

LogInformation(ILogger, String, Object[])

Formats and writes an informational log message.

LogTrace(ILogger, EventId, Exception, String, Object[])

Formats and writes a trace log message.

LogTrace(ILogger, EventId, String, Object[])

Formats and writes a trace log message.

LogTrace(ILogger, Exception, String, Object[])

Formats and writes a trace log message.

LogTrace(ILogger, String, Object[])

Formats and writes a trace log message.

LogWarning(ILogger, EventId, Exception, String, Object[])

Formats and writes a warning log message.

LogWarning(ILogger, EventId, String, Object[])

Formats and writes a warning log message.

LogWarning(ILogger, Exception, String, Object[])

Formats and writes a warning log message.

LogWarning(ILogger, String, Object[])

Formats and writes a warning log message.

Applies to