46 references to EventLogEntryType
Microsoft.Extensions.Logging.EventLog (9)
EventLogLogger.cs (6)
126
private void WriteMessage(string message,
EventLogEntryType
eventLogEntryType, int eventId)
185
private static
EventLogEntryType
GetEventLogEntryType(LogLevel level)
192
return
EventLogEntryType
.Information;
194
return
EventLogEntryType
.Warning;
197
return
EventLogEntryType
.Error;
199
return
EventLogEntryType
.Information;
IEventLog.cs (1)
14
void WriteEntry(string message,
EventLogEntryType
type, int eventID, short category);
WindowsEventLog.cs (2)
41
public void WriteEntry(string message,
EventLogEntryType
type, int eventID, short category)
58
backupLog.WriteEvent(new EventInstance(instanceId: 0, categoryId: 0,
EventLogEntryType
.Error),
System (1)
src\runtime\src\libraries\shims\System\ref\System.cs (1)
493
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.
EventLogEntryType
))]
System.Diagnostics.EventLog (23)
System\Diagnostics\EventData.cs (5)
11
private
EventLogEntryType
_entryType =
EventLogEntryType
.Information;
20
public EventInstance(long instanceId, int categoryId,
EventLogEntryType
entryType) : this(instanceId, categoryId)
37
public
EventLogEntryType
EntryType
43
throw new InvalidEnumArgumentException(nameof(EntryType), (int)value, typeof(
EventLogEntryType
));
System\Diagnostics\EventLog.cs (10)
977
WriteEntry(message,
EventLogEntryType
.Information, (short)0, 0, null);
982
WriteEntry(source, message,
EventLogEntryType
.Information, (short)0, 0, null);
985
public void WriteEntry(string? message,
EventLogEntryType
type)
990
public static void WriteEntry(string source, string? message,
EventLogEntryType
type)
995
public void WriteEntry(string? message,
EventLogEntryType
type, int eventID)
1000
public static void WriteEntry(string source, string? message,
EventLogEntryType
type, int eventID)
1005
public void WriteEntry(string? message,
EventLogEntryType
type, int eventID, short category)
1010
public static void WriteEntry(string source, string? message,
EventLogEntryType
type, int eventID, short category)
1015
public static void WriteEntry(string source, string? message,
EventLogEntryType
type, int eventID, short category, byte[]? rawData)
1023
public void WriteEntry(string? message,
EventLogEntryType
type, int eventID, short category, byte[]? rawData)
System\Diagnostics\EventLogEntry.cs (2)
133
public
EventLogEntryType
EntryType
137
return (
EventLogEntryType
)ShortFrom(dataBuf, bufOffset + FieldOffsets.EVENTTYPE);
System\Diagnostics\EventLogInternal.cs (3)
1299
public void WriteEntry(string? message,
EventLogEntryType
type, int eventID, short category,
1310
throw new InvalidEnumArgumentException(nameof(type), (int)type, typeof(
EventLogEntryType
));
1354
private void InternalWriteEvent(uint eventID, ushort category,
EventLogEntryType
type, string?[]? strings,
System\Diagnostics\EventLogTraceListener.cs (3)
170
data.EntryType =
EventLogEntryType
.Error;
172
data.EntryType =
EventLogEntryType
.Warning;
174
data.EntryType =
EventLogEntryType
.Information;
System.ServiceProcess.ServiceController (13)
System\ServiceProcess\ServiceBase.cs (13)
406
WriteLogEntry(SR.Format(SR.ContinueFailed, e),
EventLogEntryType
.Error);
428
WriteLogEntry(SR.Format(SR.CommandFailed, e),
EventLogEntryType
.Error);
449
WriteLogEntry(SR.Format(SR.PauseFailed, e),
EventLogEntryType
.Error);
476
WriteLogEntry(SR.Format(SR.PowerEventFailed, e),
EventLogEntryType
.Error);
492
WriteLogEntry(SR.Format(SR.SessionChangeFailed, e),
EventLogEntryType
.Error);
529
WriteLogEntry(SR.Format(SR.StopFailed, e),
EventLogEntryType
.Error);
560
WriteLogEntry(SR.Format(SR.ShutdownFailed, e),
EventLogEntryType
.Error);
628
service.WriteLogEntry(SR.Format(SR.StartFailed, errorMessage),
EventLogEntryType
.Error);
834
WriteLogEntry(SR.Format(SR.StartFailed, e),
EventLogEntryType
.Error);
892
WriteLogEntry(SR.Format(SR.StartFailed, errorMessage),
EventLogEntryType
.Error);
936
WriteLogEntry(SR.Format(SR.StartFailed, errorMessage),
EventLogEntryType
.Error);
949
private void WriteLogEntry(string message,
EventLogEntryType
type =
EventLogEntryType
.Information)