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:
@@ -37,6 +37,9 @@
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Design" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Web.Extensions" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
@@ -46,8 +49,25 @@
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="LogDetail.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="LogDetail.Designer.cs">
|
||||
<DependentUpon>LogDetail.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="LoggerClass.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UserLogger.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UserLogger.Designer.cs">
|
||||
<DependentUpon>UserLogger.cs</DependentUpon>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="log4net.config">
|
||||
@@ -60,6 +80,22 @@
|
||||
<Name>EnumList</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="LogDetail.resx">
|
||||
<DependentUpon>LogDetail.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="UserLogger.resx">
|
||||
<DependentUpon>UserLogger.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\Log.png" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
|
||||
@@ -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