Beispiel #1
0
 protected AbsLogEntity(eumLogType logType, string filePath, string fileName, int lazyTime)
 {
     this.logType   = logType;
     this._lazyTime = lazyTime;
     this._filePath = filePath;
     this._fileName = fileName;
 }
Beispiel #2
0
 public LogEntity(eumLogType logType, string message, Exception exp) : base(logType, SysMapPath.ErrorPath, $"{DateTime.Now.ToString("yy-MM-dd")}.xml", 1)
 {
     Exp     = exp;
     Message = message ?? exp.Message.Replace("\r\n", "");
 }