protected AbsLogEntity(eumLogType logType, string filePath, string fileName, int lazyTime) { this.logType = logType; this._lazyTime = lazyTime; this._filePath = filePath; this._fileName = fileName; }
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", ""); }