Adjust logging and add debugger option
All checks were successful
Deploy to Gitea Releases / deploy-to-gitea-releases (push) Successful in 1m12s
All checks were successful
Deploy to Gitea Releases / deploy-to-gitea-releases (push) Successful in 1m12s
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using Serilog;
|
||||
using Serilog;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using Velopack;
|
||||
|
||||
namespace HardwareMonitorStatusWindow.StatusWindow;
|
||||
@@ -9,18 +10,19 @@ internal class Program
|
||||
[STAThread]
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
if (args.Contains("--debug"))
|
||||
Debugger.Launch();
|
||||
|
||||
Log.Logger = new LoggerConfiguration().WriteTo.File("HardwareMonitorStatusWindow.log").CreateLogger();
|
||||
|
||||
Log.Logger.Information("Start");
|
||||
Log.Information("Start");
|
||||
|
||||
// var loggerFactory = new LoggerFactory().AddSerilog(Log.Logger);
|
||||
|
||||
VelopackApp.Build().Run(); // loggerFactory.CreateLogger("Install")
|
||||
VelopackApp.Build().SetLogger(new SerilogVelopackLogger()).Run();
|
||||
|
||||
var app = new App();
|
||||
app.InitializeComponent();
|
||||
app.Run();
|
||||
|
||||
Log.Logger.Information("End");
|
||||
Log.Information("End");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user