cs/errorLog.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Diagnostics;
namespace OI.Modules
{
/// <summary>
/// errorLog 的摘要说明。
/// </summary>
public class ErrorLog
{
public ErrorLog()
{
//
// TODO: 在此处添加构造函数逻辑
//
}
public static void WriteLog(string Message,System.Diagnostics.EventLogEntryType EventLogEntryType)
{
System.Diagnostics.EventLog oEventLog=new EventLog();
try
{
if (!EventLog.SourceExists("OI"))
{
EventLog.CreateEventSource("OI","智能办公系统");
}
oEventLog.Source="OI";
oEventLog.WriteEntry(Message,EventLogEntryType);
}
catch{}
}
public static void WriteLog(string Message)
{
System.Diagnostics.EventLog oEventLog=new EventLog();
try
{
if (!EventLog.SourceExists("OI"))
{
EventLog.CreateEventSource("OI","智能办公系统");
}
oEventLog.Source="OI";
oEventLog.WriteEntry(Message,System.Diagnostics.EventLogEntryType.Error);
}
catch{
}
}
public static void WriteLog(string ModuleName,string Message,System.Diagnostics.EventLogEntryType EventLogEntryType)
{
System.Diagnostics.EventLog oEventLog=new EventLog();
try
{
if (!EventLog.SourceExists("OI"))
{
EventLog.CreateEventSource("OI","智能办公系统");
}
oEventLog.Source="OI";
oEventLog.WriteEntry("发生模块:"+ModuleName+"\n"+Message,EventLogEntryType);
后面还有 25 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。