Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
 public MyLog(string msg, QLogType type = QLogType.Info, string FileName = "other") : base(msg, null, type, FileName)
 {
 }
Ejemplo n.º 3
0
 public MyLog(string msg, string[] FilePaths, QLogType type = QLogType.Info, string FileName = "other") : base(msg, FilePaths, type, FileName)
 {
 }
Ejemplo n.º 4
0
        public void Log(string Msg, QLogType Type, string Custom = "other")
        {
            var log = new MyLog(Msg, Type, Custom);

            instance.Value.EnqueueDatas(log);
        }