一、写入: private void_writeLog(){ EventLog eventLog=newEventLog(); eventLog.Log = "LogName"; eventLog.Source = "ProjectName";