C#写入日志到系统事件日志
using System.Diagnostics; EventLog.WriteEntry("Error Title", exp.Message, System.Diagnostics.EventLogEntryType.Error);
C#写入日志到系统事件日志
using System.Diagnostics; EventLog.WriteEntry("Error Title", exp.Message, System.Diagnostics.EventLogEntryType.Error);