6 instantiations of EventLog
Microsoft.Extensions.Logging.EventLog (2)
WindowsEventLog.cs (2)
26DiagnosticsEventLog = new System.Diagnostics.EventLog(logName, machineName, sourceName); 56using (var backupLog = new System.Diagnostics.EventLog("Application", ".", "Application"))
System.Diagnostics.EventLog (3)
System\Diagnostics\EventLog.cs (2)
392EventLog logToClear = new EventLog(logName, machineName); 652EventLog log = new EventLog(logNames[i], machineName);
System\Diagnostics\EventLogTraceListener.cs (1)
27EventLog = new EventLog
System.ServiceProcess.ServiceController (1)
System\ServiceProcess\ServiceBase.cs (1)
254_eventLog ??= new EventLog("Application")
25 references to EventLog
Microsoft.Extensions.Logging.EventLog (2)
WindowsEventLog.cs (2)
32public System.Diagnostics.EventLog DiagnosticsEventLog { get; } 56using (var backupLog = new System.Diagnostics.EventLog("Application", ".", "Application"))
System (1)
src\runtime\src\libraries\shims\System\ref\System.cs (1)
490[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.EventLog))]
System.Diagnostics.EventLog (20)
System\Diagnostics\EventLog.cs (7)
392EventLog logToClear = new EventLog(logName, machineName); 617public static EventLog[] GetEventLogs() 622public static EventLog[] GetEventLogs(string machineName) 649List<EventLog> logs = new List<EventLog>(logNames.Length); 652EventLog log = new EventLog(logNames[i], machineName); 704string assmLocation = typeof(EventLog).Assembly.Location;
System\Diagnostics\EventLogEntry.cs (1)
380eventKey = EventLog.GetEventLogRegKey(machineName, false);
System\Diagnostics\EventLogInternal.cs (10)
55private readonly EventLog? parent; 105public EventLogInternal(string logName, string machineName, string source, EventLog? parent) 229logName = EventLog._InternalLogNameFromSourceName(sourceName, currentMachineName); 689msg = EventLog.TryFormatMessage(hModule, messageNum, insertionStrings); 1063if (!EventLog.Exists(logname, currentMachineName)) // do not open non-existing Log [alexvec] 1251if (!EventLog.SourceExists(sourceName, currentMachineName, true)) 1258if (!EventLog.SourceExists(sourceName, currentMachineName, true)) 1264EventLog.CreateEventSource(new EventSourceCreationData(sourceName, GetLogName(currentMachineName), currentMachineName)); 1274string rightLogName = EventLog.LogNameFromSourceName(sourceName, currentMachineName); 1291string rightLogName = EventLog._InternalLogNameFromSourceName(sourceName, currentMachineName);
System\Diagnostics\EventLogTraceListener.cs (2)
19public EventLogTraceListener(EventLog? eventLog) 33public EventLog? EventLog
System.ServiceProcess.ServiceController (2)
System\ServiceProcess\ServiceBase.cs (2)
35private EventLog? _eventLog; 253public virtual EventLog EventLog =>