示例#1
0
 public static void WriteSystemLog(VMGlobal.LOG_ACTION action, string memo, Guid Id)
 {
     using (RPM_Logs rpmLogs = new RPM_Logs())
         rpmLogs.LogSystem(new SystemLog()
         {
             Action = action.ToString(),
             Memo   = memo
         });
 }
示例#2
0
 public static void Log(SystemLog log)
 {
     try
     {
         log.DomainName     = Environment.UserDomainName;
         log.LogTimestamp   = new DateTime?(DateTime.Now);
         log.MachineAccount = Environment.UserName;
         log.MachineName    = Environment.MachineName;
         log.MachineID      = Global.MachineID;
         using (RPM_Logs rpmLogs = new RPM_Logs())
             rpmLogs.LogSystem(log);
     }
     catch
     {
     }
 }