代码
StringBuilder sb = new StringBuilder();
EventLog mylog
= new EventLog();
mylog.Log
= "Application"; // System[系统日志] | Application[应用日志] | Security[安全日志]
EventLogEntryCollection myCollection = mylog.Entries;
for (int i = 0; i < myCollection.Count; i++)
{
sb.Append(
"Time:" + myCollection[i].TimeGenerated + " " +
myCollection[i].Message
+ "<br />");
}

 

相关文章:

  • 2021-10-20
  • 2022-12-23
  • 2021-09-12
猜你喜欢
  • 2021-09-15
  • 2021-10-06
  • 2021-12-18
  • 2022-12-23
  • 2021-04-16
  • 2021-12-17
  • 2022-03-06
相关资源
相似解决方案