public LogBase(string msg, string[] FilePaths, QLogType type, string FileName) { Msg = msg; Type = type; string path; if (type == QLogType.Other) { this.FileName = FileName; } else { this.FileName = type.ToString().ToLower(); } if (FilePaths != null && FilePaths.Length > 0) { path = Path.Combine(FilePaths); path = Path.Combine(path, FileName); this.FileName = path; } }
public MyLog(string msg, QLogType type = QLogType.Info, string FileName = "other") : base(msg, null, type, FileName) { }
public MyLog(string msg, string[] FilePaths, QLogType type = QLogType.Info, string FileName = "other") : base(msg, FilePaths, type, FileName) { }
public void Log(string Msg, QLogType Type, string Custom = "other") { var log = new MyLog(Msg, Type, Custom); instance.Value.EnqueueDatas(log); }