示例#1
0
 public SysLog Analysis(string msg, Exception ex, LogType type, LogModule module)
 {
     if (string.IsNullOrEmpty(msg) && ex != null)
     {
         Summary = FormatMessage(ex);
     }
     else
     {
         Summary = msg;
     }
     Type       = (byte)type;
     ModuleName = Enum.GetName(module.GetType(), module);
     CreateDT   = DateTime.Now;
     return(this);
 }