mirror of
https://github.com/eggplantlwj/VisionEdit.git
synced 2026-04-07 19:06:34 +08:00
1、优化LOG显示与引用
2、添加PMA工具,工具内容待完善 3、修复流程树显示 4、添加开源项目,优化UI空间 5、其他BUG更改
This commit is contained in:
@@ -10,12 +10,14 @@ namespace Logger
|
||||
{
|
||||
public class LoggerClass
|
||||
{
|
||||
public static readonly ILog loginfo = LogManager.GetLogger("loginfo");
|
||||
public static readonly ILog logerror = LogManager.GetLogger("logerror");
|
||||
private static readonly ILog loginfo = LogManager.GetLogger("loginfo");
|
||||
private static readonly ILog logerror = LogManager.GetLogger("logerror");
|
||||
|
||||
/// <summary>
|
||||
/// Log队列
|
||||
/// </summary>
|
||||
public static Queue<LogInfo> logQueue { get; set; } = new Queue<LogInfo>() { };
|
||||
|
||||
public static void WriteLog(string info, bool ShowMsgBox = false)
|
||||
{
|
||||
if (loginfo.IsInfoEnabled)
|
||||
@@ -65,33 +67,11 @@ namespace Logger
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class LogInfo
|
||||
{
|
||||
public string message { get; set; }
|
||||
public MsgLevel logLevel { get; set; }
|
||||
public Exception ex { get; set; }
|
||||
}
|
||||
public enum MsgLevel
|
||||
{
|
||||
/// <summary>
|
||||
/// 0.调试信息输出
|
||||
/// </summary>
|
||||
Debug = 0,
|
||||
/// <summary>
|
||||
/// 1.业务信息记录
|
||||
/// </summary>
|
||||
Info = 1,
|
||||
/// <summary>
|
||||
/// 2.警告提醒(捕获的业务异常)
|
||||
/// </summary>
|
||||
Warn = 2,
|
||||
/// <summary>
|
||||
/// 3.发生了异常(捕获的系统异常)
|
||||
/// </summary>
|
||||
Exception = 3,
|
||||
/// <summary>
|
||||
/// 4.发生致命异常(未被捕获的异常|捕获的业务逻辑异常)
|
||||
/// </summary>
|
||||
Fatal = 4
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user