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