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