admin
2020-06-20 9cd218f0bebc19b86efeca2b33abe3adf093990c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WindowsFormsApp1.entity;
 
namespace WindowsFormsApp1.utils
{
    //日志管理器
    class LogManager
    {
        private static List<LogInfo> logList = new List<LogInfo>();
 
        //获取日志
        public static List<LogInfo> GetLogList() {
            return logList;
        }
 
        //添加日志
        public static void AddLog(LogInfo log) {
            logList.Add(log);
        }
 
        //清除日志
        public static void Clear() {
            logList.Clear();
        }
 
    }
}