WindowsEventLog Class

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

Syntax

public class WindowsEventLog : IEventLog
class Microsoft.Extensions.Logging.EventLog.WindowsEventLog

Constructors

WindowsEventLog(System.String, System.String, System.String)
public WindowsEventLog(string logName, string machineName, string sourceName)

Properties

Microsoft.Extensions.Logging.EventLog.WindowsEventLog.DiagnosticsEventLog
Return type:System.Diagnostics.EventLog
public EventLog DiagnosticsEventLog { get; }
Microsoft.Extensions.Logging.EventLog.WindowsEventLog.MaxMessageSize
Return type:System.Int32
public int MaxMessageSize { get; }

Methods

WriteEntry(System.String, System.Diagnostics.EventLogEntryType, System.Int32, System.Int16)
public void WriteEntry(string message, EventLogEntryType type, int eventID, short category)