public LogModel(string logSrc, string content, EnumLoglevel logLevel) { this.logSource = logSrc; this.logLevel = logLevel; this.logContent = content; this.logtime = DateTime.Now; }
public void AddLog(string logSrc, string logContent, EnumLoglevel logLevel) { LogModel log = new LogModel(logSrc, logContent, logLevel); if (this.logRecorder == null) { return; } this.logRecorder.AddLog(log); }