예제 #1
0
 public LogModel(string logSrc, string content, EnumLoglevel logLevel)
 {
     this.logSource  = logSrc;
     this.logLevel   = logLevel;
     this.logContent = content;
     this.logtime    = DateTime.Now;
 }
예제 #2
0
        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);
        }