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();
|
}
|
|
}
|
}
|