用EventLog类如何把日志文件写道一个指定目录下的日志文件中?
if(!EventLog.SourceExists("MySource"))
{
EventLog.CreateEventSource("MySource", "F:\ooo.log");
}
EventLog oEV = new EventLog();
oEV.Source = "MySource";
oEV.WriteEntry(strError, System.Diagnostics.EventLogEntryType.Error);
为什么我执行完以后没有日志文件生成?