#0007 更新ignore文件和RADEM.md
This commit is contained in:
+19
-3
@@ -5,7 +5,6 @@ using XplorePlane.ViewModels;
|
||||
using Prism.Ioc;
|
||||
using Prism.DryIoc;
|
||||
using Serilog;
|
||||
using XplorePlane.Common.Logging;
|
||||
|
||||
namespace XplorePlane
|
||||
{
|
||||
@@ -16,8 +15,8 @@ namespace XplorePlane
|
||||
{
|
||||
protected override void OnStartup(StartupEventArgs e)
|
||||
{
|
||||
// 使用 XplorePlane.Common.dll 中的日志配置
|
||||
LoggerConfig.Initialize("XplorePlane");
|
||||
// 配置 Serilog 日志系统
|
||||
ConfigureLogging();
|
||||
|
||||
// 捕获未处理的异常
|
||||
AppDomain.CurrentDomain.UnhandledException += OnUnhandledException;
|
||||
@@ -30,10 +29,27 @@ namespace XplorePlane
|
||||
bootstrapper.Run();
|
||||
}
|
||||
|
||||
private void ConfigureLogging()
|
||||
{
|
||||
Log.Logger = new LoggerConfiguration()
|
||||
.MinimumLevel.Debug()
|
||||
.WriteTo.Console()
|
||||
.WriteTo.File("logs/xploreplane-.log",
|
||||
rollingInterval: RollingInterval.Day,
|
||||
retainedFileCountLimit: 30)
|
||||
.CreateLogger();
|
||||
|
||||
Log.Information("========================================");
|
||||
Log.Information("XplorePlane 应用程序启动");
|
||||
Log.Information("========================================");
|
||||
}
|
||||
|
||||
protected override void OnExit(ExitEventArgs e)
|
||||
{
|
||||
// 关闭并刷新日志
|
||||
Log.Information("========================================");
|
||||
Log.Information("XplorePlane 应用程序退出");
|
||||
Log.Information("========================================");
|
||||
Log.CloseAndFlush();
|
||||
base.OnExit(e);
|
||||
}
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
using Prism.Commands;
|
||||
using Prism.Mvvm;
|
||||
using System.Collections.ObjectModel;
|
||||
using XplorePlane.Services;
|
||||
using Serilog;
|
||||
|
||||
namespace XplorePlane.ViewModels
|
||||
{
|
||||
public class MainViewModel : BindableBase
|
||||
{
|
||||
private readonly ILoggerService _logger;
|
||||
private readonly ILogger _logger;
|
||||
private string _licenseInfo = "当前时间";
|
||||
|
||||
public string LicenseInfo
|
||||
@@ -25,9 +25,9 @@ namespace XplorePlane.ViewModels
|
||||
public DelegateCommand ClearCommand { get; set; }
|
||||
public DelegateCommand EditPropertiesCommand { get; set; }
|
||||
|
||||
public MainViewModel(ILoggerService logger)
|
||||
public MainViewModel(ILogger logger)
|
||||
{
|
||||
_logger = logger?.ForModule<MainViewModel>() ?? throw new System.ArgumentNullException(nameof(logger));
|
||||
_logger = logger?.ForContext<MainViewModel>() ?? throw new System.ArgumentNullException(nameof(logger));
|
||||
|
||||
NavigationTree = new ObservableCollection<object>();
|
||||
|
||||
@@ -38,42 +38,42 @@ namespace XplorePlane.ViewModels
|
||||
ClearCommand = new DelegateCommand(OnClear);
|
||||
EditPropertiesCommand = new DelegateCommand(OnEditProperties);
|
||||
|
||||
_logger.Info("MainViewModel 已初始化");
|
||||
_logger.Information("MainViewModel 已初始化");
|
||||
}
|
||||
|
||||
private void OnNavigateHome()
|
||||
{
|
||||
_logger.Info("导航到主页");
|
||||
_logger.Information("导航到主页");
|
||||
LicenseInfo = "主页";
|
||||
}
|
||||
|
||||
private void OnNavigateInspect()
|
||||
{
|
||||
_logger.Info("导航到检测页面");
|
||||
_logger.Information("导航到检测页面");
|
||||
LicenseInfo = "检测页面";
|
||||
}
|
||||
|
||||
private void OnOpenFile()
|
||||
{
|
||||
_logger.Info("打开文件");
|
||||
_logger.Information("打开文件");
|
||||
LicenseInfo = "打开文件";
|
||||
}
|
||||
|
||||
private void OnExport()
|
||||
{
|
||||
_logger.Info("导出数据");
|
||||
_logger.Information("导出数据");
|
||||
LicenseInfo = "导出数据";
|
||||
}
|
||||
|
||||
private void OnClear()
|
||||
{
|
||||
_logger.Info("清除数据");
|
||||
_logger.Information("清除数据");
|
||||
LicenseInfo = "清除数据";
|
||||
}
|
||||
|
||||
private void OnEditProperties()
|
||||
{
|
||||
_logger.Info("编辑属性");
|
||||
_logger.Information("编辑属性");
|
||||
LicenseInfo = "编辑属性";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,329 +0,0 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v8.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v8.0": {
|
||||
"XplorePlane/1.0.0": {
|
||||
"dependencies": {
|
||||
"Fluent.Ribbon": "9.0.0",
|
||||
"Prism.DryIoc": "9.0.537",
|
||||
"Serilog": "4.3.1",
|
||||
"Serilog.Sinks.Console": "6.1.1",
|
||||
"Serilog.Sinks.Debug": "3.0.0",
|
||||
"Serilog.Sinks.File": "7.0.0",
|
||||
"System.Configuration.ConfigurationManager": "8.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"XplorePlane.dll": {}
|
||||
}
|
||||
},
|
||||
"ControlzEx/5.0.1": {
|
||||
"dependencies": {
|
||||
"Microsoft.Xaml.Behaviors.Wpf": "1.1.122",
|
||||
"System.Text.Json": "5.0.1"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net5.0-windows7.0/ControlzEx.dll": {
|
||||
"assemblyVersion": "5.0.0.0",
|
||||
"fileVersion": "5.0.1.15"
|
||||
}
|
||||
}
|
||||
},
|
||||
"DryIoc.dll/5.4.3": {
|
||||
"runtime": {
|
||||
"lib/net7.0/DryIoc.dll": {
|
||||
"assemblyVersion": "5.4.3.0",
|
||||
"fileVersion": "5.4.3.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Fluent.Ribbon/9.0.0": {
|
||||
"dependencies": {
|
||||
"ControlzEx": "5.0.1"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net5.0-windows7.0/Fluent.dll": {
|
||||
"assemblyVersion": "9.0.0.0",
|
||||
"fileVersion": "9.0.0.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.DependencyInjection.Abstractions/8.0.1": {
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {
|
||||
"assemblyVersion": "8.0.0.0",
|
||||
"fileVersion": "8.0.324.11423"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Xaml.Behaviors.Wpf/1.1.122": {
|
||||
"runtime": {
|
||||
"lib/net6.0-windows7.0/Microsoft.Xaml.Behaviors.dll": {
|
||||
"assemblyVersion": "1.1.0.0",
|
||||
"fileVersion": "1.1.122.28819"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Prism.Container.Abstractions/9.0.106": {
|
||||
"dependencies": {
|
||||
"Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.1"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Prism.Container.Abstractions.dll": {
|
||||
"assemblyVersion": "9.0.106.9543",
|
||||
"fileVersion": "9.0.106.9543"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Prism.Container.DryIoc/9.0.106": {
|
||||
"dependencies": {
|
||||
"DryIoc.dll": "5.4.3",
|
||||
"Prism.Container.Abstractions": "9.0.106"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Prism.Container.DryIoc.dll": {
|
||||
"assemblyVersion": "9.0.106.9543",
|
||||
"fileVersion": "9.0.106.9543"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Prism.Core/9.0.537": {
|
||||
"dependencies": {
|
||||
"Prism.Container.Abstractions": "9.0.106",
|
||||
"Prism.Events": "9.0.537"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net6.0/Prism.dll": {
|
||||
"assemblyVersion": "9.0.537.60525",
|
||||
"fileVersion": "9.0.537.60525"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Prism.DryIoc/9.0.537": {
|
||||
"dependencies": {
|
||||
"Prism.Container.DryIoc": "9.0.106",
|
||||
"Prism.Wpf": "9.0.537"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net6.0-windows7.0/Prism.DryIoc.Wpf.dll": {
|
||||
"assemblyVersion": "9.0.537.60525",
|
||||
"fileVersion": "9.0.537.60525"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Prism.Events/9.0.537": {
|
||||
"runtime": {
|
||||
"lib/net6.0/Prism.Events.dll": {
|
||||
"assemblyVersion": "9.0.537.60525",
|
||||
"fileVersion": "9.0.537.60525"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Prism.Wpf/9.0.537": {
|
||||
"dependencies": {
|
||||
"Microsoft.Xaml.Behaviors.Wpf": "1.1.122",
|
||||
"Prism.Core": "9.0.537"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net6.0-windows7.0/Prism.Wpf.dll": {
|
||||
"assemblyVersion": "9.0.537.60525",
|
||||
"fileVersion": "9.0.537.60525"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Serilog/4.3.1": {
|
||||
"runtime": {
|
||||
"lib/net8.0/Serilog.dll": {
|
||||
"assemblyVersion": "4.3.0.0",
|
||||
"fileVersion": "4.3.0.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Serilog.Sinks.Console/6.1.1": {
|
||||
"dependencies": {
|
||||
"Serilog": "4.3.1"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Serilog.Sinks.Console.dll": {
|
||||
"assemblyVersion": "6.1.1.0",
|
||||
"fileVersion": "6.1.1.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Serilog.Sinks.Debug/3.0.0": {
|
||||
"dependencies": {
|
||||
"Serilog": "4.3.1"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Serilog.Sinks.Debug.dll": {
|
||||
"assemblyVersion": "3.0.0.0",
|
||||
"fileVersion": "3.0.0.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Serilog.Sinks.File/7.0.0": {
|
||||
"dependencies": {
|
||||
"Serilog": "4.3.1"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Serilog.Sinks.File.dll": {
|
||||
"assemblyVersion": "7.0.0.0",
|
||||
"fileVersion": "7.0.0.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.Configuration.ConfigurationManager/8.0.0": {
|
||||
"dependencies": {
|
||||
"System.Diagnostics.EventLog": "8.0.0",
|
||||
"System.Security.Cryptography.ProtectedData": "8.0.0"
|
||||
}
|
||||
},
|
||||
"System.Diagnostics.EventLog/8.0.0": {},
|
||||
"System.Security.Cryptography.ProtectedData/8.0.0": {},
|
||||
"System.Text.Json/5.0.1": {}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"XplorePlane/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
},
|
||||
"ControlzEx/5.0.1": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-DVJJmmnKXcVh3Bs2gKpAdPCT8HrkYTagSbFg0P9xHjp8dox9bKeaoVj9VGhPRzP9+LHs5MUXxN07/oGqeXNNcg==",
|
||||
"path": "controlzex/5.0.1",
|
||||
"hashPath": "controlzex.5.0.1.nupkg.sha512"
|
||||
},
|
||||
"DryIoc.dll/5.4.3": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-yhXOG3SOxeWYxBAWskNRDD8fzw5hriEawv4VN4WKaFHOuubiop4kxe2rkWTEyCnTgRVgxVUSQCDBBkZqwPm1iQ==",
|
||||
"path": "dryioc.dll/5.4.3",
|
||||
"hashPath": "dryioc.dll.5.4.3.nupkg.sha512"
|
||||
},
|
||||
"Fluent.Ribbon/9.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-29N3G7EM1WFgNofj4wEaufFaB8Iakjn/CZskq3kHKR93myxJ2iV0k6xLH3rhg9l/QATboPExV0WONT/ZfQcOVg==",
|
||||
"path": "fluent.ribbon/9.0.0",
|
||||
"hashPath": "fluent.ribbon.9.0.0.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.DependencyInjection.Abstractions/8.0.1": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-fGLiCRLMYd00JYpClraLjJTNKLmMJPnqxMaiRzEBIIvevlzxz33mXy39Lkd48hu1G+N21S7QpaO5ZzKsI6FRuA==",
|
||||
"path": "microsoft.extensions.dependencyinjection.abstractions/8.0.1",
|
||||
"hashPath": "microsoft.extensions.dependencyinjection.abstractions.8.0.1.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Xaml.Behaviors.Wpf/1.1.122": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-SgcafT189u4qX++vSCV9FLQ4BsRXU9J2esnHA9IF8GOSgnPBulFw1CW4X/FYoOXvZwdDZxlSObJUGUg1U1wSyg==",
|
||||
"path": "microsoft.xaml.behaviors.wpf/1.1.122",
|
||||
"hashPath": "microsoft.xaml.behaviors.wpf.1.1.122.nupkg.sha512"
|
||||
},
|
||||
"Prism.Container.Abstractions/9.0.106": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-QNOERNOqsxvAa8pbWjqFB872DkvYK/cVRrcFO5vJYgWTIKBd8xfaI/jaZ0qeXLYVDz0nrvgJTZVVnip6+68dCw==",
|
||||
"path": "prism.container.abstractions/9.0.106",
|
||||
"hashPath": "prism.container.abstractions.9.0.106.nupkg.sha512"
|
||||
},
|
||||
"Prism.Container.DryIoc/9.0.106": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-g7UzyK4oRPmEGgz2CV976KTBFk+QPdfktyrL91kvI4YbHciQATO6/r1KFnyRnBE73il5v+SeXXKWIrvlMnsMdg==",
|
||||
"path": "prism.container.dryioc/9.0.106",
|
||||
"hashPath": "prism.container.dryioc.9.0.106.nupkg.sha512"
|
||||
},
|
||||
"Prism.Core/9.0.537": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-D7mEqPKLVNrD0g2WHCpC/MOKwn8h7X1liCWyjqjL7NCuxgwuhVLTG85E/ZPBkISrXdwvOQZ+bSY31bvP79FQlg==",
|
||||
"path": "prism.core/9.0.537",
|
||||
"hashPath": "prism.core.9.0.537.nupkg.sha512"
|
||||
},
|
||||
"Prism.DryIoc/9.0.537": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-tnKifVxlKeSbNP2gZi+nMcjsi/w0lm3aLhBh92gWO6uCoa44ACM9gVJeO77ew4aHYZuoHUd6wHyeozfN7QKWuA==",
|
||||
"path": "prism.dryioc/9.0.537",
|
||||
"hashPath": "prism.dryioc.9.0.537.nupkg.sha512"
|
||||
},
|
||||
"Prism.Events/9.0.537": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-Pzp5MGUuhAyKXZUbHVYNWLGF/eA3sScqDN6VrzbWlKj85R0IS0q+JXe99umynso2xhXAe+1jrQCCkgqmEFCBng==",
|
||||
"path": "prism.events/9.0.537",
|
||||
"hashPath": "prism.events.9.0.537.nupkg.sha512"
|
||||
},
|
||||
"Prism.Wpf/9.0.537": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-srsXhi7FRUFawsNoRkY67duMEGjZo3ff0FpqpkjeWkkAuLazlH1UmNVrvwnpaLQCBboexH/z6oGrLvpeocxgdw==",
|
||||
"path": "prism.wpf/9.0.537",
|
||||
"hashPath": "prism.wpf.9.0.537.nupkg.sha512"
|
||||
},
|
||||
"Serilog/4.3.1": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-savYe7h5yRlkqBVOwP8cIRDOdqKiPmYCU4W87JH38sBmcKD5EBoXvQIw6bNEvZ/pTe1gsiye3VFCzBsoppGkXQ==",
|
||||
"path": "serilog/4.3.1",
|
||||
"hashPath": "serilog.4.3.1.nupkg.sha512"
|
||||
},
|
||||
"Serilog.Sinks.Console/6.1.1": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-8jbqgjUyZlfCuSTaJk6lOca465OndqOz3KZP6Cryt/IqZYybyBu7GP0fE/AXBzrrQB3EBmQntBFAvMVz1COvAA==",
|
||||
"path": "serilog.sinks.console/6.1.1",
|
||||
"hashPath": "serilog.sinks.console.6.1.1.nupkg.sha512"
|
||||
},
|
||||
"Serilog.Sinks.Debug/3.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-4BzXcdrgRX7wde9PmHuYd9U6YqycCC28hhpKonK7hx0wb19eiuRj16fPcPSVp0o/Y1ipJuNLYQ00R3q2Zs8FDA==",
|
||||
"path": "serilog.sinks.debug/3.0.0",
|
||||
"hashPath": "serilog.sinks.debug.3.0.0.nupkg.sha512"
|
||||
},
|
||||
"Serilog.Sinks.File/7.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-fKL7mXv7qaiNBUC71ssvn/dU0k9t0o45+qm2XgKAlSt19xF+ijjxyA3R6HmCgfKEKwfcfkwWjayuQtRueZFkYw==",
|
||||
"path": "serilog.sinks.file/7.0.0",
|
||||
"hashPath": "serilog.sinks.file.7.0.0.nupkg.sha512"
|
||||
},
|
||||
"System.Configuration.ConfigurationManager/8.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-JlYi9XVvIREURRUlGMr1F6vOFLk7YSY4p1vHo4kX3tQ0AGrjqlRWHDi66ImHhy6qwXBG3BJ6Y1QlYQ+Qz6Xgww==",
|
||||
"path": "system.configuration.configurationmanager/8.0.0",
|
||||
"hashPath": "system.configuration.configurationmanager.8.0.0.nupkg.sha512"
|
||||
},
|
||||
"System.Diagnostics.EventLog/8.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-fdYxcRjQqTTacKId/2IECojlDSFvp7LP5N78+0z/xH7v/Tuw5ZAxu23Y6PTCRinqyu2ePx+Gn1098NC6jM6d+A==",
|
||||
"path": "system.diagnostics.eventlog/8.0.0",
|
||||
"hashPath": "system.diagnostics.eventlog.8.0.0.nupkg.sha512"
|
||||
},
|
||||
"System.Security.Cryptography.ProtectedData/8.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-+TUFINV2q2ifyXauQXRwy4CiBhqvDEDZeVJU7qfxya4aRYOKzVBpN+4acx25VcPB9ywUN6C0n8drWl110PhZEg==",
|
||||
"path": "system.security.cryptography.protecteddata/8.0.0",
|
||||
"hashPath": "system.security.cryptography.protecteddata.8.0.0.nupkg.sha512"
|
||||
},
|
||||
"System.Text.Json/5.0.1": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-/UM3UK1dXKl8Ybysg/21gM4S8DJgkR+yLU8JwqCVbuNqQNImelntgYFAN5QxR8sJJ1kMx//hOUdf0lltosi8cQ==",
|
||||
"path": "system.text.json/5.0.1",
|
||||
"hashPath": "system.text.json.5.0.1.nupkg.sha512"
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user