Merge pull request 'master' (#31) from waffle.lord/SPT-AKI-Installer:master into master
Reviewed-on: CWX/SPT-AKI-Installer#31
This commit is contained in:
commit
ee30f7d1ed
@ -15,6 +15,16 @@ public partial class App : Application
|
|||||||
{
|
{
|
||||||
AvaloniaXamlLoader.Load(this);
|
AvaloniaXamlLoader.Load(this);
|
||||||
|
|
||||||
|
var logPath = Path.Join(Environment.CurrentDirectory, "spt-aki-installer_.log");
|
||||||
|
|
||||||
|
Log.Logger = new LoggerConfiguration()
|
||||||
|
.MinimumLevel.Debug()
|
||||||
|
.WriteTo
|
||||||
|
.File(path: logPath,
|
||||||
|
restrictedToMinimumLevel: Serilog.Events.LogEventLevel.Debug,
|
||||||
|
rollingInterval: RollingInterval.Day)
|
||||||
|
.CreateLogger();
|
||||||
|
|
||||||
RxApp.DefaultExceptionHandler = Observer.Create<Exception>((exception) =>
|
RxApp.DefaultExceptionHandler = Observer.Create<Exception>((exception) =>
|
||||||
{
|
{
|
||||||
Log.Error(exception, "An application exception occurred");
|
Log.Error(exception, "An application exception occurred");
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
using Avalonia;
|
using Avalonia;
|
||||||
using Avalonia.ReactiveUI;
|
using Avalonia.ReactiveUI;
|
||||||
using ReactiveUI;
|
using ReactiveUI;
|
||||||
using Serilog;
|
|
||||||
using Splat;
|
using Splat;
|
||||||
using SPTInstaller.Controllers;
|
using SPTInstaller.Controllers;
|
||||||
using SPTInstaller.Helpers;
|
using SPTInstaller.Helpers;
|
||||||
@ -37,15 +36,6 @@ internal class Program
|
|||||||
ServiceHelper.Register<PreCheckBase, NetCore6PreCheck>();
|
ServiceHelper.Register<PreCheckBase, NetCore6PreCheck>();
|
||||||
|
|
||||||
ServiceHelper.Register<PreCheckBase, FreeSpacePreCheck>();
|
ServiceHelper.Register<PreCheckBase, FreeSpacePreCheck>();
|
||||||
var logPath = Path.Join(Environment.CurrentDirectory, "spt-aki-installer_.log");
|
|
||||||
|
|
||||||
Log.Logger = new LoggerConfiguration()
|
|
||||||
.MinimumLevel.Debug()
|
|
||||||
.WriteTo
|
|
||||||
.File(path: logPath,
|
|
||||||
restrictedToMinimumLevel: Serilog.Events.LogEventLevel.Debug,
|
|
||||||
rollingInterval: RollingInterval.Day)
|
|
||||||
.CreateLogger();
|
|
||||||
|
|
||||||
ServiceHelper.Register<InstallerTaskBase, InitializationTask>();
|
ServiceHelper.Register<InstallerTaskBase, InitializationTask>();
|
||||||
ServiceHelper.Register<InstallerTaskBase, ReleaseCheckTask>();
|
ServiceHelper.Register<InstallerTaskBase, ReleaseCheckTask>();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user