I am trying to write some test code to simulated a blue screen application event log entry. I have the generic function
private void AddEventLogEntry(string source, string errorText, int eventId, short category)
{
string log = "Application";
if (!EventLog.SourceExists(source))
EventLog.CreateEventSource(source, log);
EventLog.WriteEntry(source, errorText,
EventLogEntryType.Information, eventId, category);
}
This will write any source entry to the application event log until I try with source name "Save Dump" when for some reason windows puts this in the system event log.
Example
AddEventLogEntry("Save Dump", "error text", 1, 4);
Any ideas how to get a Source of "Save Dump" in the application event log.
Thanks!